N
Nuxt7mo ago
Pipoca

SSG behavior under development (target: 'static' no longer works)

When we are dealing with SSG apps which are very interactive, they used to use a lot of browser-features stuff like localstorage, cookies, window.[something], etc. Using browser-feature methods safety is a little tricky in Nuxt 3 because most of the time we are going to check if our environment is the client or browser. However, in Nuxt 2 we had ssr: false and target: 'static' combination which allow us to develop without the need to check if we are in the client side each time. The question is... is there a way to replicate this behaviour with Nuxt 3? What I am trying to avoid: - Do not use <client only> wrapper as much as possible because SEO side effects. - Do not use just ssr: false because SPA is not an alternative Thank you in advance Nuxters!
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server