Use docsify history mode

This commit is contained in:
Cory LaViska
2020-07-14 16:26:37 -04:00
parent f57d1d2c20
commit be78be7caf
4 changed files with 8 additions and 2 deletions

View File

@@ -19,6 +19,7 @@ const chalk = require('chalk');
const express = require('express');
const fs = require('fs').promises;
const path = require('path');
const historyFallback = require('connect-history-api-fallback');
const { createProxyMiddleware } = require('http-proxy-middleware');
const app = express();
@@ -58,7 +59,8 @@ setTimeout(() => {
port: browserPort,
proxy: {
target: `http://localhost:${proxyPort}`,
ws: true
ws: true,
middleware: [historyFallback()]
},
logLevel: 'silent',
notify: false,