diff --git a/docs/en/essentials/history-mode.md b/docs/en/essentials/history-mode.md index 3ef4d07e7..1ea4c0641 100644 --- a/docs/en/essentials/history-mode.md +++ b/docs/en/essentials/history-mode.md @@ -102,6 +102,24 @@ rewrite { } ``` +#### Firebase hosting + +Add this to your `firebase.json`: + +``` +{ + "hosting": { + "public": "dist", + "rewrites": [ + { + "source": "**", + "destination": "/index.html" + } + ] + } +} +``` + ## Caveat 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: