Aller au contenu

Le point de terminaison dynamique généré entre en collision avec une autre route.

PrerenderDynamicEndpointPathCollide: Could not render PATHNAME with an undefined param as the generated path will collide during prerendering. Prevent passing undefined as params for the endpoint’s getStaticPaths() function, or add an additional extension to the endpoint’s filename.

Le point de terminaison est pré-rendu avec un paramètre undefined, de sorte que le chemin généré entrera en collision avec une autre route.

Si vous ne pouvez pas empêcher de passer undefined, alors une extension supplémentaire peut être ajoutée au nom du fichier d’extrémité pour générer le fichier avec un nom différent. Par exemple, renommer pages/api/[slug].ts en pages/api/[slug].json.ts.

Voir aussi :