Skip to content

Commit bb0be4d

Browse files
committed
add : robots.txt
1 parent 2e70da0 commit bb0be4d

File tree

3 files changed

+40
-2
lines changed

3 files changed

+40
-2
lines changed

astro.config.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ import { defineConfig } from "astro/config";
22

33
import sitemap from "@astrojs/sitemap";
44

5+
import robotsTxt from "astro-robots-txt";
6+
57
// https://astro.build/config
68
export default defineConfig({
79
site: "https://vigneshsnaik.github.io",
8-
integrations: [sitemap()],
10+
integrations: [sitemap(), robotsTxt()],
911
output: "static",
10-
});
12+
});

package-lock.json

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"dependencies": {
1313
"@astrojs/sitemap": "^3.2.1",
1414
"astro": "^4.16.14",
15+
"astro-robots-txt": "^1.0.0",
1516
"badge-maker": "^3.3.1",
1617
"sharp": "^0.33.5"
1718
}

0 commit comments

Comments
 (0)