diff --git a/astro.config.mjs b/astro.config.mjs index e12a119..d34d1b1 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -6,6 +6,8 @@ import node from "@astrojs/node"; import react from "@astrojs/react"; +import robots from "astro-robots"; + // https://astro.build/config export default defineConfig({ vite: { @@ -18,5 +20,5 @@ export default defineConfig({ mode: "standalone", }), - integrations: [react()], + integrations: [react(), robots()], }); \ No newline at end of file diff --git a/package.json b/package.json index 5af4c43..5369c0f 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "astro": "^5.2.3", + "astro-robots": "^2.3.1", "react": "^19.0.0", "react-dom": "^19.0.0", "tailwindcss": "^4.0.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bd67326..5762690 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,6 +26,9 @@ importers: astro: specifier: ^5.2.3 version: 5.2.3(jiti@2.4.2)(lightningcss@1.29.1)(rollup@4.34.0)(typescript@5.7.3) + astro-robots: + specifier: ^2.3.1 + version: 2.3.1(astro@5.2.3(jiti@2.4.2)(lightningcss@1.29.1)(rollup@4.34.0)(typescript@5.7.3)) react: specifier: ^19.0.0 version: 19.0.0 @@ -743,6 +746,11 @@ packages: array-iterate@2.0.1: resolution: {integrity: sha512-I1jXZMjAgCMmxT4qxXfPXa6SthSoE8h6gkSI9BGGNv8mP8G/v0blc+qFnZu6K42vTOiuME596QaLO0TP3Lk0xg==} + astro-robots@2.3.1: + resolution: {integrity: sha512-ocYIVPBVRBp0zeIVQ9o8PiQThkTmccZWlPKJXtgfC6dsrPwNtKOwbLtH+X4COoJhliwVEO2uzQy6bAFSSSwzcA==} + peerDependencies: + astro: '>= 4.0.0' + astro@5.2.3: resolution: {integrity: sha512-04AceE/gVihtO3V28Ss0+tPPgLHGoulXrm1E7fUVPYyQu7y6w8+oXfYyzh1lpy+uEYiebjH7AFlJoz73anBmZA==} engines: {node: ^18.17.1 || ^20.3.0 || >=22.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0'} @@ -2591,6 +2599,10 @@ snapshots: array-iterate@2.0.1: {} + astro-robots@2.3.1(astro@5.2.3(jiti@2.4.2)(lightningcss@1.29.1)(rollup@4.34.0)(typescript@5.7.3)): + dependencies: + astro: 5.2.3(jiti@2.4.2)(lightningcss@1.29.1)(rollup@4.34.0)(typescript@5.7.3) + astro@5.2.3(jiti@2.4.2)(lightningcss@1.29.1)(rollup@4.34.0)(typescript@5.7.3): dependencies: '@astrojs/compiler': 2.10.3