We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
robots.txt
1 parent 587115e commit 2dcddb7Copy full SHA for 2dcddb7
generate/index.js
@@ -437,6 +437,18 @@ await fs.writeFile(
437
438
console.log('✔ `/sitemap.xml`')
439
440
+await fs.writeFile(
441
+ new URL('../build/robots.txt', import.meta.url),
442
+ [
443
+ 'User-agent: *',
444
+ 'Allow: /',
445
+ 'Sitemap: ' + new URL('sitemap.xml', origin).href,
446
+ ''
447
+ ].join('\n')
448
+)
449
+
450
+console.log('✔ `/robots.txt`')
451
452
/**
453
*
454
* @param {() => Root} render
0 commit comments