Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs Add app engine to history mode docs #3348

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 17 additions & 1 deletion docs/guide/essentials/history-mode.md
Expand Up @@ -110,7 +110,7 @@ rewrite {

Add this to your `firebase.json`:

```
```json
{
"hosting": {
"public": "dist",
Expand All @@ -124,6 +124,22 @@ Add this to your `firebase.json`:
}
```

#### Google AppEngine

Try the following handlers in your `app.yaml`:

```yaml
- url: /(.*\.(js|css|png|jpg|json|ico|svg))$
static_files: dist/\1
upload: dist/.*\.(js|css|png|jpg|json|ico|svg)$

# catch all handler to index.html
- url: /.*
static_files: dist/index.html
upload: dist/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:
Expand Down