Description
I'm trying to move a Next.js site (which uses next's i18n routing) over to Netlify, but sadly can't due to this error:
Error: ENOENT: no such file or directory, stat '.next/serverless/pages/index.html'
It's true that this file doesn't exist. Instead, the default homepage can be found at '.next/serverless/pages/en/index.html' (replacing "en" with whatever default locale is set in next.config.js).
It would be great to detect if i18n is in use, and then get the homepage's file location by reading the default locale.
Metadata
Metadata
Assignees
Labels
No labels