No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    use SSR in one route/page

    Help
    2
    2
    217
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      emanuelfarias last edited by

      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.

      dobbel 1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel @emanuelfarias last edited by dobbel

        @emanuelfarias

        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-plugin

        const 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',
                     ],
                })
              )
         }
        
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post