Skip to content

Commit 4f7e225

Browse files
committed
Fall back to history api for 404 errors
1 parent e2b252c commit 4f7e225

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,13 @@ async function serve(configs: webpack.Configuration[], args: any, esbuild = fals
265265
})
266266
);
267267

268+
app.use(
269+
base,
270+
history({
271+
disableDotRule: true
272+
})
273+
);
274+
268275
serveStatic(app, outputDir, args.mode, args.compression, base);
269276

270277
const defaultKey = path.resolve('.cert', 'server.key');

0 commit comments

Comments
 (0)