We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
/index.html
1 parent 87b310a commit f927879Copy full SHA for f927879
packages/angular/build/src/tools/vite/middlewares/html-fallback-middleware.ts
@@ -28,7 +28,10 @@ export function angularHtmlFallbackMiddleware(
28
29
if (req.url) {
30
const mimeType = lookupMimeTypeFromRequest(req.url);
31
- if (mimeType === 'text/html' || mimeType === 'application/xhtml+xml') {
+ if (
32
+ (mimeType === 'text/html' || mimeType === 'application/xhtml+xml') &&
33
+ !/^\/index\.(?:csr\.)?html/.test(req.url)
34
+ ) {
35
// eslint-disable-next-line no-console
36
console.warn(
37
`Request for HTML file "${req.url}" was received but no asset found. Asset may be missing from build.`,
0 commit comments