Akryum / vue-cli-plugin-ssr

:sparkles: Simple SSR plugin for Vue CLI
https://vue-cli-plugin-ssr.netlify.com/
MIT License
444 stars 69 forks source link

Disable ssr #42

Open KirillRomanuk opened 5 years ago

KirillRomanuk commented 5 years ago

Is there any way to disable SSR after installing plugin? Maybe something like <no-ssr> component in nuxt.js?

chanlito commented 5 years ago

Just curious you use SSR plugin but want to disable it?

fenixphp commented 5 years ago

How to disable ssr for certain pages?

PureDizzi commented 5 years ago

npm i vue-no-ssr

Just curious you use SSR plugin but want to disable it?

Some plugins might not work in a server environment.

cainrus commented 5 years ago

I want to generate multiple bundles with ssr & wihtout ssr. I want to disable ssr on highload. is it possible?

vroad commented 5 years ago

Doesn't this plugin support something similar to nuxt's {ssr: false}?

https://nuxtjs.org/guide/plugins#client-side-only

oboshto commented 5 years ago

Also interested in no-ssr prop or similar

franciscolourenco commented 4 years ago

The plugin preserves yarn serve and yarn build. Would indeed be nice to keep them working in parallel.

Just curious you use SSR plugin but want to disable it?

@chanlito The static version this is useful to take advantage of services like Now, Netlify, Render, etc, to automatically create a deployment for each pull request.

bpolaszek commented 3 years ago

Hello there,

Any news on this? I tried using the skipRequests option in vue.config.js but then all matched routes in this method result in a 404 instead of falling back to the standard SPA.

cainrus commented 3 years ago

Sadly, but any vue ssr plugin is poorly supported right now. You can try to use https://universal-vue.github.io/

bpolaszek commented 3 years ago

Yes, I'm currently giving it a try and it seems to fit so far :-) Thanks!

PS: By the way the correct link https://universal-vue.github.io/docs/ 🙂