Skip to content

Commit 91f4ad7

Browse files
ReneCodeposva
authored andcommitted
add configuration for Firebase hosting (#1729)
* add configuration for Firebase hosting * Update history-mode.md
1 parent 8f10178 commit 91f4ad7

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Diff for: docs/en/essentials/history-mode.md

+18
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,24 @@ rewrite {
102102
}
103103
```
104104

105+
#### Firebase hosting
106+
107+
Add this to your `firebase.json`:
108+
109+
```
110+
{
111+
"hosting": {
112+
"public": "dist",
113+
"rewrites": [
114+
{
115+
"source": "**",
116+
"destination": "/index.html"
117+
}
118+
]
119+
}
120+
}
121+
```
122+
105123
## Caveat
106124

107125
There is a caveat to this: Your server will no longer report 404 errors as all not-found paths now serve up your `index.html` file. To get around the issue, you should implement a catch-all route within your Vue app to show a 404 page:

0 commit comments

Comments
 (0)