How to do Static Site Generation with no JS on the client side in Nuxt 3
Hi there! I would like to know if it's possible to use
nuxt generate
to create a static html version of my app, without any JS on the client side. Right now when I generate the app it will include JS to (I think) hydrate the client side JS over the generated html. I would like to generate just HTML and CSS. My content will be fetched from an API. So considering this nuxt example page:
I would like to generate this static HTML version:
Is this possible?6 Replies
Hi đ this can be done with
experimental.noScripts
set to true in your configThanks! Didn't know that existed. So... It's experimental?
What does that mean?
yes, uuh.... that's something experimental ?
I mean more like; whats the context. Why is experimental, will it become non-experimental, if so, when? Etc.
I ask this because I'm looking at using this feature for a big client and I can't sell it if it's "experimental"
It is experimental because itâs unfinalized, subject to significant changes, with no guaranteed release let alone come with a release date. There may not be enough feedback on its usage to warrant a stable release. And so on.
You could ask a team member, maybe theyâll have a better steer on its stability. I certainly wouldnât sell it to a client.
Allright, that's what I wanted to know. Thanks!