Open jonathanwelton opened 3 years ago
Any news on this issue it's also affecting me.
It seems literally adding, the most basic boilerplate i18n config causes this.
module.exports = {
i18n: { defaultLocale: 'en', locales: ['en'] },
target: 'serverless',
}
Looking at the cypress videos the 'htaccess' is not set up correctly and cypress is seeing the folder structure, it seems the local folders are confusing the netlify plugin
Maybe fullPublishFolder need to be set differently?
async function postBuild({
utils,
fullPublishFolder,
record,
spec,
start,
waitOn,
waitOnTimeout,
group,
tag,
spa,
browser,
configFile,
errorCallback,
summaryCallback,
})
Versions
Describe the bug Since we added next-i18next and configured it in the next.config.js our Cypress tests pre-build and post-build have failed.
If the plugin is configured to run post-deployment, all the Cypress tests pass as expected.
When we run the Cypress tests on pre-build we get the following error:
When we run the Cypress tests on post-build we get the following error:
Link to the repo https://github.com/jonathanwelton/netlify-i18n-cypress-test (currently configured to run the Cypress tests post-build)