Skip to content

Commit 0104069

Browse files
committed
md update added firebase.json- rewrite
1 parent dd883dc commit 0104069

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,23 @@ The template is created by [GDG Jalandhar](https://meetup.com/GDG-Jalandhar/) te
4848
1. Some by default file will be created successfully.
4949
1. Run locally
5050
* `firebase serve` or `npm run serve`
51+
1. Update Firebase.json file
52+
```js
53+
{
54+
"hosting": {
55+
"public": "dist",
56+
"rewrites": [ {
57+
"source": "**",
58+
"destination": "/index.html"
59+
} ],
60+
"ignore": [
61+
"firebase.json",
62+
"**/.*",
63+
"**/node_modules/**"
64+
]
65+
}
66+
}
67+
```
5168
1. Build and deploy
5269
* `firebase deploy` or `npm run deploy`
5370

docs/tutorials/deploy.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,23 @@
1313
1. Some by default file will be created successfully.
1414
1. Run locally
1515
* `firebase serve` or `npm run serve` or `yarn serve`
16+
1. Update Firebase.json file
17+
```js
18+
{
19+
"hosting": {
20+
"public": "dist",
21+
"rewrites": [ {
22+
"source": "**",
23+
"destination": "/index.html"
24+
} ],
25+
"ignore": [
26+
"firebase.json",
27+
"**/.*",
28+
"**/node_modules/**"
29+
]
30+
}
31+
}
32+
```
1633
1. Build and deploy
1734
* `firebase deploy` or `npm run deploy` or `yarn deploy`
1835
1. The URL to your live site is listed in the output.

0 commit comments

Comments
 (0)