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

    How to place Quasar web page on a sub url?

    Help
    3
    3
    125
    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.
    • B
      Barney last edited by

      I can’t seem to find a solution for the following problem:

      I want to serve my quasar webpage in dev from
      https://mysite.test/app - so that the script files are also served from https://mysite.test/app/script.js

      And later in prod I want to serve my webpage from
      https://mysite.com/app
      and the scripts from
      https://mysite.com/app/script.js

      Is that possible?

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        What’s the purpose of doing this?

        Scott

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

          check out the ‘publicPath’ build property:

          https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-build

          looking at the url’s you want you also have to use history mode. ( it’s called vueRouterMode and is explained on the same page). Know that history mode comes with more configuration on the prod server .

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