Blank page when deploying to firebase



  • 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!



  • 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.


Log in to reply