Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions docs/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ Your `firebase.json` file should look similar to this (I changed the deployment

Once finished, build the starting template by running `docsify init ./site` (replacing site with the deployment directory you determined when running `firebase init` - public by default). Add/edit the documentation, then run `firebase deploy` from the root project directory.

## VPS
## Nginx

Use the following nginx config.
Use the following Nginx configuration.

```nginx
server {
listen 80;
server_name your.domain.com;
server_name your.domain.com;

location / {
alias /path/to/dir/of/docs/;
Expand All @@ -74,6 +74,22 @@ server {
}
```

If [`routerMode`](configuration.md#routermode) is set to `history`, use this configuration instead:

```nginx
server {
listen 80;
server_name your.domain.com;

root /path/to/dir/of/docs;
index index.html;

location / {
try_files $uri $uri/ /index.html;
}
}
```

## Netlify

1. Login to your [Netlify](https://www.netlify.com/) account.
Expand Down
2 changes: 2 additions & 0 deletions src/core/router/history/html5.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,6 @@ export class HTML5History extends History {
response: {},
};
}

normalize() {}
}