Skip to content

Deploy on Firebase

wenyanl edited this page Jun 25, 2019 · 2 revisions

Refer to: https://github.com/uoForms/QF-React/wiki/Hosting-a-web-application-on-firebase

Tips:

  • ? Configure as a single-page app (rewrite all urls to /index.html)? Yes
  • ? File public/index.html already exists. Overwrite? No
  • Before firebase deploy, change code in firebase.json from:
{
  "hosting": {
    "public": "public",
    "ignore": ["firebase.json", "**/.*", "**/node_modules/**"]
  }
}

To:

{
  "hosting": {
    "public": "build",
    "ignore": ["firebase.json", "**/.*", "**/node_modules/**"]
  }
}

run "npm run build" again, and then "firebase deploy"