Skip to content

Commit

Permalink
chore(workflows/build): use static robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Jan 21, 2025
1 parent d10d71b commit c6b91ab
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/prod-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ jobs:
yarn build:sw
yarn build:client
yarn build:ssr
yarn tool:legacy build-robots-txt
cp assets/prod/robots.txt client/build/robots.txt
yarn rari content sync-translated-content
yarn rari git-history
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/stage-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,8 @@ jobs:
yarn build:sw
yarn build:client
yarn build:ssr
yarn tool:legacy build-robots-txt
cp assets/nonprod/robots.txt client/build/robots.txt
yarn rari content sync-translated-content
yarn rari git-history
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ jobs:
yarn build:sw
yarn build:client
yarn build:ssr
yarn tool:legacy build-robots-txt
cp assets/nonprod/robots.txt client/build/robots.txt
yarn rari content sync-translated-content
yarn rari git-history
Expand Down
3 changes: 3 additions & 0 deletions assets/nonprod/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
User-Agent: *

Disallow: /
6 changes: 6 additions & 0 deletions assets/prod/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
User-agent: *
Sitemap: https://developer.mozilla.org/sitemap.xml

Disallow: /api/
Disallow: /*/files/
Disallow: /media

0 comments on commit c6b91ab

Please sign in to comment.