I'm trying to deploy my Angular project in Vercel and I keep getting this error message:
✘ [ERROR] The 'quote/:categoryId' route uses prerendering and includes parameters, but 'getPrerenderParams' is missing. Please define 'getPrerenderParams' function for this route in your server routing configuration or specify a different 'renderMode'.
I've gone through my app.routes.ts several times and the problem is not persists.
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { HomeComponent } from './pages/home/home.component';
import { QuoteComponent } from './pages/quote/quote.component';
export const routes: Routes = [
{ path: '', component: HomeComponent },
{ path: 'quote/:categoryId', component: QuoteComponent },
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }
app.routes.server.tsand configure routes there as well: angular.dev/guide/ssr#customizing-build-time-prerendering-ssg