You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/essentials/history-mode.md
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,24 @@ rewrite {
102
102
}
103
103
```
104
104
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
+
105
123
## Caveat
106
124
107
125
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