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

    Blank page when deploying to firebase

    Help
    2
    2
    363
    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.
    • A
      andrewhl last edited by

      Hello,

      I’m using Quasar "^1.14.1", and I’m trying to deploy to Firebase. I’m building first with quasar build -m spa, and the deployment is successful. However the resulting page is blank.

      This is my firebase.json:

      {
        "hosting": {
          "headers": [{
              "source": "/**",
              "headers": [{
                "key": "Cache-Control",
                "value": "no-cache, no-store, must-revalidate"
              }]
            },
            {
              "source": "**/*.@(jpg|jpeg|gif|png|svg|webp|js|css|eot|otf|ttf|ttc|woff|woff2|font.css)",
              "headers": [{
                "key": "Cache-Control",
                "value": "max-age=604800"
              }]
            }
          ],
          "site": "mysitename",
          "public": "dist/spa",
          "ignore": [
            "firebase.json",
            "**/.*",
            "**/node_modules/**"
          ],
          "rewrites": [{
            "source": "**",
            "destination": "/dist/spa/index.html"
          }]
        }
      }
      

      I’ve also tried changing the destination to "/index.html". No luck.

      If anyone can suggest something I can try that would be greatly appreciated!

      Thanks!

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

        Hi,
        i never deploy to firebase, but, can you try to change the destination by “/index.html” instead of “/dist/spa/index.html”
        you already specify public directory previously.

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