Skip to content

Commit

Permalink
Fix robots.txt build
Browse files Browse the repository at this point in the history
  • Loading branch information
travismiller committed Mar 31, 2021
1 parent acda31c commit b7bb477
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ dev:

build:
yarn build
[ "$$CONTEXT" = "production" ] && rm out/robots.txt
[ ! -f out/robots.txt.$$CONTEXT ] || cp out/robots.txt.$$CONTEXT out/robots.txt
rm -f out/robots.txt.*

start:
yarn start
Expand Down
2 changes: 2 additions & 0 deletions public/robots.txt.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow:

0 comments on commit b7bb477

Please sign in to comment.