1) Clone git repository
2) Generate files with
npm run generate
3) Open local server on
4) Try to access
/, see error
As the route generation strategy is configured on
prefix, and there is no forced
rootRedirect, it is expected that we are redirected to
/en depending on the browser language.
index.html file that redirect us to localized routes is generated in the
We're stuck on the
/ with no redirect (personally, I have an error
Can't read property 'locale' of undefined.).
Everything is working fine with
npm run build or
npm run start, we are redirected correctly.
But I want to have a fully static website with a working root redirection…
Actually to fix temporarily the problem, I defined
fr as my default locale (strategy