Skip to content

Commit 2cc6d67

Browse files
Feat: seo improvements v2 (#868)
* seo improvements * seo style adjustment + refactor * seo prevent qa + dev from being crawled
1 parent b4d6274 commit 2cc6d67

File tree

12 files changed

+17854
-345
lines changed

12 files changed

+17854
-345
lines changed

.github/workflows/web-app-deployer.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,13 @@ jobs:
266266
working-directory: functions
267267
run: npx firebase deploy --only functions
268268

269+
- name: Set robots.txt
270+
working-directory: web-app
271+
run: |
272+
if [ "${{ inputs.FIREBASE_PROJECT }}" != "prod" ]; then
273+
mv public/robots.staging.txt public/robots.txt
274+
fi
275+
269276
- name: Build
270277
working-directory: web-app
271278
run: yarn build:${FIREBASE_PROJECT}

web-app/public/robots.staging.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-agent: *
2+
Disallow: /

web-app/public/robots.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# https://www.robotstxt.org/robotstxt.html
21
User-agent: *
3-
Disallow:
2+
Allow: /
3+
Sitemap: https://mobilitydatabase.org/sitemap.xml

0 commit comments

Comments
 (0)