From f47429f33966218155e4638de6969ccfd133b89d Mon Sep 17 00:00:00 2001 From: Puneet Lath Date: Thu, 14 May 2026 16:10:23 -0400 Subject: [PATCH 1/2] Set JEKYLL_ENV for help deploys --- .github/workflows/deployExpensifyHelp.yml | 2 ++ .github/workflows/deployNewHelp.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/deployExpensifyHelp.yml b/.github/workflows/deployExpensifyHelp.yml index c88b524e9dc3..1aa4465b779f 100644 --- a/.github/workflows/deployExpensifyHelp.yml +++ b/.github/workflows/deployExpensifyHelp.yml @@ -68,6 +68,8 @@ jobs: working-directory: ./docs - name: Build Jekyll site + env: + JEKYLL_ENV: production run: bundle exec jekyll build --source ./ --destination ./_site working-directory: ./docs diff --git a/.github/workflows/deployNewHelp.yml b/.github/workflows/deployNewHelp.yml index 84eeb03f6858..37fb632fbeed 100644 --- a/.github/workflows/deployNewHelp.yml +++ b/.github/workflows/deployNewHelp.yml @@ -68,6 +68,8 @@ jobs: # Manually run Jekyll, bypassing Github Pages - name: Build Jekyll site + env: + JEKYLL_ENV: production run: bundle exec jekyll build --source ./ --destination ./_site working-directory: ./help # Ensure Jekyll is building the site in /help From e6dd757adacf3d7185b02fc6cc4fce40ae7afb3d Mon Sep 17 00:00:00 2001 From: "Puneet Lath (via MelvinBot)" Date: Tue, 19 May 2026 15:44:12 +0000 Subject: [PATCH 2/2] Flip CONST.html to default to production URL Inverts the if/else so production is the default and dev URL is only used when JEKYLL_ENV is explicitly set to development. Removes the now-unnecessary JEKYLL_ENV=production from both deploy workflows. Co-authored-by: Puneet Lath --- .github/workflows/deployExpensifyHelp.yml | 2 -- .github/workflows/deployNewHelp.yml | 2 -- docs/_includes/CONST.html | 6 +++--- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deployExpensifyHelp.yml b/.github/workflows/deployExpensifyHelp.yml index 1aa4465b779f..c88b524e9dc3 100644 --- a/.github/workflows/deployExpensifyHelp.yml +++ b/.github/workflows/deployExpensifyHelp.yml @@ -68,8 +68,6 @@ jobs: working-directory: ./docs - name: Build Jekyll site - env: - JEKYLL_ENV: production run: bundle exec jekyll build --source ./ --destination ./_site working-directory: ./docs diff --git a/.github/workflows/deployNewHelp.yml b/.github/workflows/deployNewHelp.yml index 37fb632fbeed..84eeb03f6858 100644 --- a/.github/workflows/deployNewHelp.yml +++ b/.github/workflows/deployNewHelp.yml @@ -68,8 +68,6 @@ jobs: # Manually run Jekyll, bypassing Github Pages - name: Build Jekyll site - env: - JEKYLL_ENV: production run: bundle exec jekyll build --source ./ --destination ./_site working-directory: ./help # Ensure Jekyll is building the site in /help diff --git a/docs/_includes/CONST.html b/docs/_includes/CONST.html index 231423f10586..6642bcfbaa8a 100644 --- a/docs/_includes/CONST.html +++ b/docs/_includes/CONST.html @@ -1,7 +1,7 @@ -{% if jekyll.environment == "production" %} - {% assign MAIN_SITE_URL = "https://new.expensify.com" %} -{% else %} +{% if jekyll.environment == "development" %} {% assign MAIN_SITE_URL = "https://dev.new.expensify.com:8082" %} +{% else %} + {% assign MAIN_SITE_URL = "https://new.expensify.com" %} {% endif %} {% capture CONCIERGE_CHAT_URL %}{{MAIN_SITE_URL}}/concierge{% endcapture %}