Cheers guys,
I am hosting my next app on vercel. Until today this was without a problem at all. Out of nowhere, an issue appeared.
For all of the pages that are not prerendered (hence the fallback in getStaticPaths is true) we receive an error from the serverless function.
Error:
2022-08-29T19:57:50.021Z 300099ef-fe49-442f-a317-2c921881fe70 ERROR Error: ENOENT: no such file or directory, scandir '/var/task/frontend/public/locales/de' at Object.readdirSync (fs.js:1048:3) at getLocaleNamespaces (/var/task/frontend/node_modules/next-i18next/dist/commonjs/config/createConfig.js:175:23) at /var/task/frontend/node_modules/next-i18next/dist/commonjs/config/createConfig.js:181:20 at Array.map (<anonymous>) at getNamespaces (/var/task/frontend/node_modules/next-i18next/dist/commonjs/config/createConfig.js:180:44) at createConfig (/var/task/frontend/node_modules/next-i18next/dist/commonjs/config/createConfig.js:221:29) at _callee$ (/var/task/frontend/node_modules/next-i18next/dist/commonjs/serverSideTranslations.js:199:53) at tryCatch (/var/task/frontend/node_modules/regenerator-runtime/runtime.js:63:40) at Generator.invoke [as _invoke] (/var/task/frontend/node_modules/regenerator-runtime/runtime.js:293:22) at Generator.next (/var/task/frontend/node_modules/regenerator-runtime/runtime.js:118:21) { errno: -2, syscall: 'scandir', path: '/var/task/frontend/public/locales/de', page: '<Pagename here>'}
Quite interesting: When we redeploy very old builds the same error appears. Hence we figure this must be an issue on the side of vercel?
Do you experience a similar issue?