use SSR in one route/page
-
I build the whole website in SPA mode.
Now I need to add metatags (facebook Open Graph) for one route in my app.
I heard that I need SSR activated in my quasar app to solve this, but I don’t want to rewrite the whole app just to add metatags in one route.Is it possible to active SSR in one page?
In this route I use Axios to fetch some information from the API and display.PS: I never work with SSR before. It’s suppose to be simple I guess.
-
Is it possible to active SSR in one page?
don’t think so.
But maybe you could use this:
https://github.com/chrisvfritz/prerender-spa-pluginconst PrerenderSPAPlugin = require('prerender-spa-plugin'); ... extendWebpack(cfg) { if (cfg.mode === 'production') { cfg.plugins.push( new PrerenderSPAPlugin({ staticDir: path.join(__dirname, 'dist/spa'), routes: [ '/my/single/page/ssr/rendered/path', ], }) ) }