We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fde4b0 commit d942f2bCopy full SHA for d942f2b
vendor/integration/index.ts
@@ -95,7 +95,7 @@ export default ({ config: _themeConfig = 'src/config.yaml' } = {}): AstroIntegra
95
const pattern = /^Sitemap:(.*)$/m;
96
97
if (!pattern.test(robotsTxt)) {
98
- fs.appendFileSync(robotsTxtFileInOut, `${os.EOL}${os.EOL}Sitemap: ${sitemapUrl}`, {
+ fs.writeFileSync(robotsTxtFileInOut, `${robotsTxt}${os.EOL}${os.EOL}Sitemap: ${sitemapUrl}`, {
99
encoding: 'utf8',
100
flag: 'w',
101
});
0 commit comments