Skip to content

Commit

Permalink
Robots script fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kossnocorp committed Oct 23, 2023
1 parent 2e211bf commit 853bd8d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions scripts/build/assets/robots.production.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
User-agent: *
File renamed without changes.
9 changes: 5 additions & 4 deletions scripts/build/robots.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

if [ "$NODE_ENV" != "production" ]
then
cp "$PWD/scripts/build/assets/robots.txt" "$PWD/build/web"
fi
if [[ "$APP_ENV" == "staging" ]]; then
cp "$PWD/scripts/build/assets/robots.staging.txt" "$PWD/build/web/robots.txt"
else
cp "$PWD/scripts/build/assets/robots.production.txt" "$PWD/build/web/robots.txt"
fi

0 comments on commit 853bd8d

Please sign in to comment.