feat: robots.txt

This commit is contained in:
DIYgod
2023-05-18 17:39:42 +01:00
parent abe56af40f
commit 6488cd867d
4 changed files with 22 additions and 3 deletions
+1 -2
View File
@@ -55,8 +55,7 @@ export default async function middleware(req: NextRequest) {
pathname.startsWith("/locales/") ||
pathname.match(/^\/(workbox|worker|fallback)-\w+\.js(\.map)?$/) ||
pathname === "/sw.js" ||
pathname === "/sw.js.map" ||
pathname === "/robots.txt"
pathname === "/sw.js.map"
) {
return NextResponse.next()
}