검색엔진 노출을 위한 setting
참조
github repository
- repository를 다음과 같은 이름으로 생성
[id].github.io
현재구조
.vitepress/config.mtstypescriptsrcDir에 src를 기준으로 되어 있습니다.export default defineConfig({ srcDir: "src", sitemap: { hostname: "https://[id].github.io/", }, });src/public폴더 생성public폴더에image,robots.txt, 소유권 인증을 위한 html이 위차하게 됩니다.build를하면public의파일이 root에 위치하게 됩니다.
robots.txt
robots.txt파일을public폴더에 생성
User-agent: *
Allow: /
Sitemap: https://[id].github.io/