Update server routing for static assets

This commit is contained in:
Frank Li 2017-07-19 10:57:07 -07:00
parent a455ca9745
commit ee82575df0
2 changed files with 1 additions and 3 deletions

View file

@ -379,8 +379,6 @@ function execute(port) {
/* serve static content first from user folder then from docusaurus */
app.use(siteConfig.baseUrl, express.static(CWD + "/static"));
app.use(siteConfig.baseUrl, express.static(__dirname + "/../static"));
app.use(express.static(CWD + "/static"));
app.use(express.static(__dirname + "/../static"));
app.get(/\/[^\.]*\/?$/, (req, res) => {
if (req.path.toString().endsWith("/")) {