summaryrefslogtreecommitdiff
path: root/apps/web/src/app/robots.ts
diff options
context:
space:
mode:
authorKha Nguyen <hi@khanguyen.com>2025-07-23 17:10:15 -0500
committerKha Nguyen <hi@khanguyen.com>2025-07-23 17:10:15 -0500
commit1504b4f60cd53bb37341d492ac6071f91eafdf4f (patch)
treed4b3032b94bbe6203e6370b0ca3ee177c1347480 /apps/web/src/app/robots.ts
parent7bd952b080e2bbba47a063b681d0a668b20ae8cb (diff)
parent81ad5c1782bfed92c2fdcd78b5131748871f098e (diff)
downloadopencut-1504b4f60cd53bb37341d492ac6071f91eafdf4f.tar.gz
Merge branch 'main' into fix/project-title-styling
Diffstat (limited to 'apps/web/src/app/robots.ts')
-rw-r--r--apps/web/src/app/robots.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/web/src/app/robots.ts b/apps/web/src/app/robots.ts
new file mode 100644
index 00000000..ad6c31c8
--- /dev/null
+++ b/apps/web/src/app/robots.ts
@@ -0,0 +1,13 @@
+import type { MetadataRoute } from "next";
+import { SITE_URL } from "@/constants/site";
+
+export default function robots(): MetadataRoute.Robots {
+ return {
+ rules: {
+ userAgent: "*",
+ allow: "/",
+ disallow: ["/_next/", "/projects/", "/editor/"],
+ },
+ sitemap: `${SITE_URL}/sitemap.xml`,
+ };
+}