컨텐츠로 건너뛰기

Prerendered dynamic endpoint has path collision.

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.

엔드포인트가 undefined 매개변수로 미리 렌더링되어 생성된 경로가 다른 경로와 충돌합니다.

undefined 전달을 방지할 수 없는 경우 엔드포인트 파일 이름에 확장자를 추가하여 다른 이름의 파일을 생성할 수 있습니다. 예를 들어 pages/api/[slug].ts의 이름을 pages/api/[slug].json.ts로 바꿉니다.

더 보기: