Skip to content

Commit ee6fef4

Browse files
authored
fix: implement normalize method in html5.js (#2712)
1 parent 72c0d63 commit ee6fef4

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

docs/deploy.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ Your `firebase.json` file should look similar to this (I changed the deployment
5858

5959
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.
6060

61-
## VPS
61+
## Nginx
6262

63-
Use the following nginx config.
63+
Use the following Nginx configuration.
6464

6565
```nginx
6666
server {
6767
listen 80;
68-
server_name your.domain.com;
68+
server_name your.domain.com;
6969
7070
location / {
7171
alias /path/to/dir/of/docs/;
@@ -74,6 +74,22 @@ server {
7474
}
7575
```
7676

77+
If [`routerMode`](configuration.md#routermode) is set to `history`, use this configuration instead:
78+
79+
```nginx
80+
server {
81+
listen 80;
82+
server_name your.domain.com;
83+
84+
root /path/to/dir/of/docs;
85+
index index.html;
86+
87+
location / {
88+
try_files $uri $uri/ /index.html;
89+
}
90+
}
91+
```
92+
7793
## Netlify
7894

7995
1. Login to your [Netlify](https://www.netlify.com/) account.

src/core/router/history/html5.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,6 @@ export class HTML5History extends History {
6363
response: {},
6464
};
6565
}
66+
67+
normalize() {}
6668
}

0 commit comments

Comments
 (0)