Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ jobs:
node-version: 18
# cache: yarn

- name: If repo is website-prod replace text website.wopee.io to wopee.io and remove robots.txt
- name: If repo is website-prod replace text website.wopee.io to wopee.io and write production robots.txt
if: github.repository == 'autonomous-testing/website-prod'
run: |
sed -i 's/website.wopee.io/wopee.io/g' ./CNAME
sed -i 's/website.wopee.io/wopee.io/g' ./docusaurus.config.js
sed -i 's/dev.wopee.io/wopee.io/g' ./cmdBaseUrl.js
rm -rf ./static/robots.txt
cp ./static/robots.prod.txt ./static/robots.txt

- name: If repo is website-prod replace text website.wopee.io to wopee.io and remove robots.txt
if: github.repository == 'autonomous-testing/website-demo'
Expand Down
29 changes: 29 additions & 0 deletions static/robots.prod.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
User-agent: *
Allow: /
Disallow: /billing/

User-agent: GPTBot
Allow: /

User-agent: ClaudeBot
Allow: /

User-agent: Google-Extended
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: Applebot-Extended
Allow: /

User-agent: Amazonbot
Allow: /

User-agent: YouBot
Allow: /

User-agent: cohere-ai
Allow: /

Sitemap: https://wopee.io/sitemap.xml
4 changes: 3 additions & 1 deletion static/robots.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
User-agent: * Disallow: /
# Staging — block all crawlers (production robots.txt is written by deploy pipeline)
User-agent: *
Disallow: /
Loading