How to fix /_not-found failing to prerender
Unanswered
Giant Angora posted this in #help-forum
Giant AngoraOP
Error occurred prerendering page "/_not-found". Read more: https://nextjs.org/docs/messages/prerender-error
TypeError: Failed to parse URL from undefined/api/brands?populate%5Blogo%5D=true&populate%5Bsites%5D%5Bfields%5D%5B0%5D=id&filters%5Bdomain%5D%5B%24eq%5D=nextjs.localhost
at new Request (node:internal/deps/undici/undici:6110:19)
at i (/opt/nextjs/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:180562)
at G (/opt/nextjs/.next/server/chunks/379.js:2:6847)
at /opt/nextjs/.next/server/chunks/379.js:2:9093
at async f (/opt/nextjs/.next/server/app/_not-found/page.js:1:7421)
at async u (/opt/nextjs/.next/server/app/_not-found/page.js:1:6738)
at async Object.m [as getBrand] (/opt/nextjs/.next/server/app/_not-found/page.js:1:7909)
at async a (/opt/nextjs/.next/server/app/_not-found/page.js:1:4716)
at async o (/opt/nextjs/.next/server/app/_not-found/page.js:1:4893)
at async l (/opt/nextjs/.next/server/app/_not-found/page.js:1:5403)
✓ Generating static pages (6/6)
> Export encountered errors on following paths:
/_not-found/page: /_not-found
ELIFECYCLE Command failed with exit code 1.