add astro-ai-robots-txt integration

This commit is contained in:
emma 2025-04-02 07:31:05 -04:00
parent 46bff3f879
commit 3c586ebc47
3 changed files with 22 additions and 3 deletions

View File

@ -1,6 +1,8 @@
// @ts-check
import { defineConfig } from "astro/config";
import aiRobotsTxt from "astro-ai-robots-txt";
// https://astro.build/config
export default defineConfig({
image: {
@ -8,7 +10,10 @@ export default defineConfig({
// Used for all `<Image />` and `<Picture />` components unless overridden with a prop
experimentalLayout: "responsive",
},
experimental: {
responsiveImages: true,
},
});
integrations: [aiRobotsTxt()],
});

15
package-lock.json generated
View File

@ -8,7 +8,8 @@
"version": "0.0.1",
"dependencies": {
"@supabase/supabase-js": "^2.48.1",
"astro": "^5.5.2"
"astro": "^5.5.2",
"astro-ai-robots-txt": "^0.1.1"
}
},
"node_modules/@astrojs/compiler": {
@ -1636,6 +1637,18 @@
"sharp": "^0.33.3"
}
},
"node_modules/astro-ai-robots-txt": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/astro-ai-robots-txt/-/astro-ai-robots-txt-0.1.1.tgz",
"integrity": "sha512-zIpzfpEGvxeWQPJmdyFyl5KGryw+ThEsgek/lI6eeZ9ykw6fJ+ZQYqlvJuWmUSEU4ESVLqXMxBWBgV6OeAQpXg==",
"license": "MIT",
"engines": {
"node": "^18.17.1 || ^20.3.0 || >=21.0.0"
},
"peerDependencies": {
"astro": "^5.4.3"
}
},
"node_modules/axobject-query": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz",

View File

@ -10,6 +10,7 @@
},
"dependencies": {
"@supabase/supabase-js": "^2.48.1",
"astro": "^5.5.2"
"astro": "^5.5.2",
"astro-ai-robots-txt": "^0.1.1"
}
}