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

    Deploy SSR application on XAMPP webserver

    Help
    2
    3
    339
    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.
    • V
      Vostinariu Vlad last edited by

      Re: SPA-SSR Deployment with Apache

      Found this related topic that has pretty much the same issue as I do. I am writing a SSR application and I want it to run under http://localhost/app/, and I’ve created an Reverse Proxy that works successfully but all the assets are added with absolute paths http://localhost/js/example.js which is wrong because it should be http://localhost/app/js/example.js.

      I’ve tried with publicPath under the build property to set it to ‘/app/’ but nothing seems to change.

      Also please note that:

      pwa -> false
      vueRouterMode -> tried with both history | hash

      1 Reply Last reply Reply Quote 1
      • V
        Vostinariu Vlad last edited by

        Basically the issue is that link have absolute paths ‘/’ instead of relative

        1 Reply Last reply Reply Quote 0
        • rstoenescu
          rstoenescu Admin last edited by

          Hi,

          You can’t use SSR with a custom public path, even if you wrap it with some reverse proxy. It’s just not how SSR works. Use a subdomain (when deploying) instead.
          Also, there’s the quasar.conf.js > build > forceDevPublicPath (https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-build) – but only for dev mode AND if you REALLY know what you are doing (otherwise you can break your whole app).

          1 Reply Last reply Reply Quote 0
          • First post
            Last post