From 5dafc082372f781849597da45272d29f7a46890b Mon Sep 17 00:00:00 2001 From: Ru Chern Chong Date: Mon, 2 Dec 2024 20:25:00 +0800 Subject: [PATCH] Fix syntax in robots.txt --- app/robots.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/robots.ts b/app/robots.ts index a8092bc..5837bb3 100644 --- a/app/robots.ts +++ b/app/robots.ts @@ -3,7 +3,7 @@ import { AppEnv } from "@/types"; import type { MetadataRoute } from "next"; const robots = (): MetadataRoute.Robots => { - const protectedPaths = ["api/", "_next/", "static/"]; + const protectedPaths = ["/api/", "/public", "/_next/", "/static/"]; let rules: MetadataRoute.Robots["rules"]; switch (APP_ENV) {