[Vuejs]-Include html verification file in root Vue

0👍

You normally put the content of your vue.js dist folder (generated through npm run build) into the public folder of Firebase hosting (and overwwrite the default index.html file initially generated by the Firebase project setup script).

Then in you firebase.json file you have the following rewrite in order to handle the Single Page Application behavior of you vue.js application (see doc)

{
  "hosting": {
    "public": "public",
    ...
    ],
    "rewrites": [
      {
        "source": "**",
        "destination": "/index.html"
      }
    ]
  }
}

If you add your example-key.html file at the same level than the index.html file generated by the vue-cli you should be able to open it via:

https://yourprojectid.firebaseapp.com/example-key.html

Leave a comment