Initial commit

This commit is contained in:
2026-08-02 20:55:23 +02:00
parent 411f484b40
commit d558d18d9a
295 changed files with 9 additions and 5880 deletions
-32
View File
@@ -1,32 +0,0 @@
/**
* Builds robots rules that allow crawling everything except the admin panel and
* API, and point crawlers at the sitemap.
*
* ```ts
* // app/robots.ts
* export default function robots() {
* return buildRobots({ baseUrl: process.env.NEXT_PUBLIC_SERVER_URL! })
* }
* ```
*
* The admin and API are disallowed by default — no reason for them in the index,
* and it keeps crawl budget on real content.
*/ export function buildRobots({ baseUrl, disallow = [
'/admin',
'/api'
], sitemap = true }) {
const origin = baseUrl.replace(/\/$/, '');
return {
rules: {
allow: '/',
disallow,
userAgent: '*'
},
...sitemap ? {
sitemap: `${origin}/sitemap.xml`
} : {},
host: origin
};
}
//# sourceMappingURL=buildRobots.js.map