diff --git a/bun.lockb b/bun.lockb
index 2788234e1..0e8c94e1f 100644
Binary files a/bun.lockb and b/bun.lockb differ
diff --git a/packages/website/astro.config.mjs b/packages/website/astro.config.mjs
index c0792cf8b..6587d63d5 100644
--- a/packages/website/astro.config.mjs
+++ b/packages/website/astro.config.mjs
@@ -1,6 +1,7 @@
// @ts-check
import react from '@astrojs/react';
+import sitemap from '@astrojs/sitemap';
import vercel from '@astrojs/vercel/serverless';
import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin';
import { defineConfig } from 'astro/config';
@@ -9,8 +10,9 @@ export default defineConfig({
devToolbar: { enabled: false },
output: 'hybrid',
adapter: vercel(),
+ site: 'https://blitzkit.app',
- integrations: [react()],
+ integrations: [react(), sitemap()],
vite: {
plugins: [vanillaExtractPlugin()],
resolve: {
diff --git a/packages/website/package.json b/packages/website/package.json
index e23c74498..20c5f059b 100644
--- a/packages/website/package.json
+++ b/packages/website/package.json
@@ -34,6 +34,7 @@
"devDependencies": {
"@astrojs/check": "^0.9.3",
"@astrojs/react": "^3.6.2",
+ "@astrojs/sitemap": "^3.2.0",
"@astrojs/vercel": "^7.8.1",
"@types/js-cookie": "^3.0.6",
"@types/react": "^18.3.5",
diff --git a/packages/website/src/layouts/BaseLayout.astro b/packages/website/src/layouts/BaseLayout.astro
index eef190d7f..3feb803cc 100644
--- a/packages/website/src/layouts/BaseLayout.astro
+++ b/packages/website/src/layouts/BaseLayout.astro
@@ -41,6 +41,7 @@ const isRoot = pathname === '/';
+
diff --git a/packages/website/src/pages/robots.txt.ts b/packages/website/src/pages/robots.txt.ts
index 22edfd3f9..bfb868ae0 100644
--- a/packages/website/src/pages/robots.txt.ts
+++ b/packages/website/src/pages/robots.txt.ts
@@ -3,18 +3,19 @@ import type { APIContext } from 'astro';
export async function GET({}: APIContext) {
const allowRobots = assertSecret(import.meta.env.ALLOW_ROBOTS) === 'true';
+ const site = assertSecret(import.meta.env.SITE);
return new Response(`
-User-agent: *
-${allowRobots ? 'Allow' : 'Disallow'}: /
+ User-agent: *
+ ${allowRobots ? 'Allow' : 'Disallow'}: /
-${
- allowRobots
- ? `
-Host: https://blitzkit.app
-Sitemap: https://blitzkit.app/sitemap.txt
-`
- : ''
-}
-`);
+ ${
+ allowRobots
+ ? `
+ Host: ${site}
+ Sitemap: ${site}/sitemap-index.xml
+ `
+ : ''
+ }
+ `);
}