mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2026-04-19 06:39:54 +00:00
index
This commit is contained in:
2
v3/vendor/integration/index.ts
vendored
2
v3/vendor/integration/index.ts
vendored
@@ -95,7 +95,7 @@ export default ({ config: _themeConfig = 'src/config.yaml' } = {}): AstroIntegra
|
||||
const pattern = /^Sitemap:(.*)$/m;
|
||||
|
||||
if (!pattern.test(robotsTxt)) {
|
||||
fs.appendFileSync(robotsTxtFileInOut, `${os.EOL}${os.EOL}Sitemap: ${sitemapUrl}`, {
|
||||
fs.writeFileSync(robotsTxtFileInOut, `${robotsTxt}${os.EOL}${os.EOL}Sitemap: ${sitemapUrl}`, {
|
||||
encoding: 'utf8',
|
||||
flag: 'w',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user