Skip to content

Commit

Permalink
#26 refactor: robots.txt 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
msung99 committed Mar 12, 2024
1 parent a1ef5c7 commit a94524f
Show file tree
Hide file tree
Showing 3 changed files with 249 additions and 7 deletions.
10 changes: 9 additions & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,14 @@ module.exports = {
},
`gatsby-plugin-styled-components`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-advanced-sitemap`
`gatsby-plugin-advanced-sitemap`,
{
resolve: 'gatsby-plugin-robots-txt',
options: {
host: "https://haon.blog",
sitemap: "https://haon.blog/sitemap.xml",
policy: [{userAgent: '*', allow: '/'}]
}
}
],
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"gatsby-plugin-image": "^3.13.1",
"gatsby-plugin-manifest": "^5.13.1",
"gatsby-plugin-react-helmet": "^6.13.1",
"gatsby-plugin-robots-txt": "^1.8.0",
"gatsby-plugin-sharp": "^5.13.1",
"gatsby-plugin-styled-components": "^6.13.1",
"gatsby-remark-autolink-headers": "^6.13.1",
Expand Down
Loading

0 comments on commit a94524f

Please sign in to comment.