Created
November 2, 2024 14:20
-
-
Save moaoa/6d442ca04ec31b74b5c687109cc22fb9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // select the main firebase project | |
| firebase use <main-project-id> | |
| // list projects | |
| firebase projects:list | |
| // firebase target:apply hosting <app-id> <site-url> | |
| firebase target:apply hosting enjaz-web enjaz.bedayat.ly | |
| // firebase deploy --only hosting:<app-id> | |
| firebase deploy --only hosting:enjaz-web | |
| //firebase.json | |
| { | |
| "hosting": { | |
| "target": "dist", | |
| "public": "dist", | |
| "ignore": [ | |
| "firebase.json", | |
| "**/.*", | |
| "**/node_modules/**" | |
| ], | |
| "rewrites": [ | |
| { | |
| "source": "**", | |
| "destination": "/index.html" | |
| } | |
| ] | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment