I have a simple project want to output SSG file , but when i build my project , i findout that all my dynamic file are return 404 , just like i have a file /app/[id]/page.tsx , my page is base on the “id” to do some setting , i have no idea what “id” user will input .
It is easy to reproduce
- create a new next.js project
- set output: “export”, in next config file
- create /app/[id]/page.tsx
- npm run build and npx serve out
- after serve , just input http://domain/anyIdHere
- output 404
Next.js 14