fix: 404 locales

This commit is contained in:
DIYgod
2023-04-16 01:12:54 +01:00
parent ef9b2d61d2
commit c009c73887
+1
View File
@@ -38,6 +38,7 @@ export default async function middleware(req: NextRequest) {
pathname.startsWith("/dashboard") ||
pathname.startsWith("/_next/") ||
pathname.startsWith("/assets/") ||
pathname.startsWith("/locales/") ||
pathname.match(/^\/(workbox|worker|fallback)-\w+\.js(\.map)?$/) ||
pathname === "/sw.js" ||
pathname === "/sw.js.map"