Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generateStaticRoutes doesn't work for main index.vue – landingpage re-rendered on each request #669

Open
Fabioni opened this issue Apr 15, 2022 · 1 comment

Comments

@Fabioni
Copy link

Fabioni commented Apr 15, 2022

Hey, the feature "generateStaticRoutes": true does work pretty well but unfortunately especially for the landingpage, so the main index.vue it does not work, so this page is always re-rendered on the server on each request. Any ideas about that? @danielroe

I assume it has something to do with the fact that the index.html is maybe also the route for the fallback ssr lambda function.

@Fabioni
Copy link
Author

Fabioni commented Apr 15, 2022

When setting lambdaName: 'notindex' in nuxt.config it works but then the server fallback for not-generated pages does not work and I just get a 404 from vercel.

Assosited code:

const lambdaName = nuxtConfigFile.lambdaName ? nuxtConfigFile.lambdaName : 'index'

So we need a way to differentiate between the index file and the index fallback.

I think what could work is using lambdaName instead of fixed index here:

{ src: '/(.*)', dest: '/index' }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant