fix: 404 svg not found

This commit is contained in:
DIYgod 2023-01-23 12:31:45 +00:00
parent 1e28fb9e12
commit 393e5c8d02
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View File

@ -2,3 +2,4 @@
e2e e2e
pnpm-lock.yaml pnpm-lock.yaml
dist dist
public

View File

@ -33,7 +33,8 @@ export default async function middleware(req: NextRequest) {
pathname.match(/^\/(workbox|worker|fallback)-\w+\.js(\.map)?$/) || pathname.match(/^\/(workbox|worker|fallback)-\w+\.js(\.map)?$/) ||
pathname === "/sw.js" || pathname === "/sw.js" ||
pathname === "/sw.js.map" || pathname === "/sw.js.map" ||
pathname === "/logo.png" pathname === "/logo.png" ||
pathname === "/404.svg"
) { ) {
return NextResponse.next() return NextResponse.next()
} }