You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.