feat: add script for robots.txt file generation
This commit is contained in:
parent
f452f0023b
commit
737a342c3b
1 changed files with 12 additions and 0 deletions
12
app/robots.ts
Normal file
12
app/robots.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
import type { MetadataRoute } from "next";
|
||||
|
||||
export default function robots(): MetadataRoute.Robots {
|
||||
return {
|
||||
rules: {
|
||||
userAgent: "*",
|
||||
allow: "/",
|
||||
disallow: "/unsubscribe"
|
||||
},
|
||||
sitemap: `${process.env.NEXT_PUBLIC_WEBSITE_URL}/sitemap.xml`
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue