Skip to content

Commit

Permalink
special robots.txt for dev Host
Browse files Browse the repository at this point in the history
  • Loading branch information
gamesguru committed May 25, 2023
1 parent 262b8d2 commit 21bb714
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
if: github.ref == 'refs/heads/dev'
run: pnpm build:dev

- name: Copy robots-dev.txt in place
run: mv static/robots-dev.txt static/robots.txt

- name: Deploy (dev) [Copy static files over]
if: github.ref == 'refs/heads/dev'
run: rm -rf /var/www/app/* && mv build/* /var/www/app/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nutra-web",
"version": "0.3.18",
"version": "0.3.19",
"private": true,
"scripts": {
"dev": "vite dev",
Expand Down
9 changes: 9 additions & 0 deletions static/robots-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Block development server
User-agent: Googlebot
User-agent: Bingbot
User-agent: AdIdxBot
Disallow: /

# Allow all others
User-agent: *
Allow: /

0 comments on commit 21bb714

Please sign in to comment.