Skip to content

Commit

Permalink
md update added firebase.json- rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
vrijraj committed Mar 26, 2019
1 parent dd883dc commit 0104069
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,23 @@ The template is created by [GDG Jalandhar](https://meetup.com/GDG-Jalandhar/) te
1. Some by default file will be created successfully.
1. Run locally
* `firebase serve` or `npm run serve`
1. Update Firebase.json file
```js
{
"hosting": {
"public": "dist",
"rewrites": [ {
"source": "**",
"destination": "/index.html"
} ],
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
}
```
1. Build and deploy
* `firebase deploy` or `npm run deploy`

Expand Down
17 changes: 17 additions & 0 deletions docs/tutorials/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,23 @@
1. Some by default file will be created successfully.
1. Run locally
* `firebase serve` or `npm run serve` or `yarn serve`
1. Update Firebase.json file
```js
{
"hosting": {
"public": "dist",
"rewrites": [ {
"source": "**",
"destination": "/index.html"
} ],
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
}
```
1. Build and deploy
* `firebase deploy` or `npm run deploy` or `yarn deploy`
1. The URL to your live site is listed in the output.
Expand Down

0 comments on commit 0104069

Please sign in to comment.