My homepage route is SSR / client-only mode #19720
Unanswered
jackcunningham
asked this question in
Questions (Nuxt 2)
Replies: 1 comment
-
This problem was solved by the thread author himself. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
All the pages including dynamic routes in my site are statically generated (SSG), when you view source you correctly see all the markup as expected. But for some reason the homepage route is in SSR/client-only mode, ie when you view source there is no content in the markup, just the scripts and if you disable JS you get a blank page.
The app is in Netlify and I can see an error during the deploy
Error generating route "/ ": This page could not be found
.I'm not sure if the space after the slash is significant?
My nuxt-config has no special settings other than interval/concurrency
These versions are installed in
nuxt.config.js
I've tried moving the homepage to a different route eg
/test/index.vue/
and SSG kicks in properly again, so there is no problem with the code in the page. Likewise I can change my homepage to a basic template like below and it still renders in client-only mode - it treats whatever I put in /index.vue as client-only.How can i make sure my homepage statically generates?
Beta Was this translation helpful? Give feedback.
All reactions