We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1aaed5e commit 98a61ffCopy full SHA for 98a61ff
packages/angular_devkit/build_angular/src/builders/dev-server/vite-server.ts
@@ -581,7 +581,13 @@ export async function setupServer(
581
next: Connect.NextFunction,
582
) {
583
const url = req.originalUrl;
584
- if (!url || url.endsWith('.html')) {
+ if (
585
+ // Skip if path is not defined.
586
+ !url ||
587
+ // Skip if path is like a file.
588
+ // NOTE: We use a regexp to mitigate against matching requests like: /browse/pl.0ef59752c0cd457dbf1391f08cbd936f
589
+ /^\.[a-z]{2,4}$/i.test(path.extname(url.split('?')[0]))
590
+ ) {
591
next();
592
593
return;
0 commit comments