From 08561b7370307a00818fd2f786273e09ad9e1601 Mon Sep 17 00:00:00 2001 From: rylim <36293596+rylim@users.noreply.github.com> Date: Mon, 25 Oct 2021 20:52:46 -0700 Subject: [PATCH] Update build-site.js --- bin/build-site.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/build-site.js b/bin/build-site.js index e3596305..b01e0d35 100755 --- a/bin/build-site.js +++ b/bin/build-site.js @@ -291,6 +291,11 @@ async function buildSite() { writePage( '404.html', notFoundTemplate( { notFoundStyles } ) ); + + // Add empty robots.txt + console.log(); + console.log( 'Writing empty robots.txt' ); + writePage( 'robots.txt', '' ); console.log(); console.log( 'Site files are ready in "site/build/"' );