Skip to content

Commit 29e05ae

Browse files
committed
feat : sitemap 등록
- sitemap 및 robots.txt 작성
1 parent 53d310d commit 29e05ae

File tree

3 files changed

+890
-0
lines changed

3 files changed

+890
-0
lines changed

gatsby-config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,19 @@ module.exports = {
3232
twitterUsername: `@pjj186`,
3333
},
3434
plugins: [
35+
`gatsby-plugin-sitemap`,
3536
`gatsby-plugin-image`,
3637
`gatsby-plugin-sharp`,
3738
`gatsby-transformer-sharp`,
3839
"gatsby-plugin-postcss",
40+
{
41+
resolve: "gatsby-plugin-robots-txt",
42+
options: {
43+
host: "https://pjj186.github.io",
44+
sitemap: "https://pjj186.github.io/sitemap.xml",
45+
policy: [{ userAgent: "*", allow: "/" }],
46+
},
47+
},
3948
{
4049
resolve: "gatsby-plugin-google-gtag",
4150
options: {

0 commit comments

Comments
 (0)