Skip to content

Commit d0079da

Browse files
committed
ci: change all places to use APP_ENV
1 parent 77d9cc3 commit d0079da

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/azure-deploy-storybook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
registryPassword: ${{ steps.acr.outputs.pass }}
9999
targetPort: ${{ env.PORT }}
100100
ingress: external
101-
environmentVariables: "PORT=${{ env.PORT }} HOST=0.0.0.0 ENV=${{ inputs.environment }}"
101+
environmentVariables: "PORT=${{ env.PORT }} HOST=0.0.0.0 APP_ENV=${{ inputs.environment }}"
102102

103103
- name: fetch fqdn
104104
id: fqdn

.github/workflows/azure-deploy-themebuilder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
registryPassword: ${{ steps.acr.outputs.pass }}
9999
targetPort: ${{ env.PORT }}
100100
ingress: external
101-
environmentVariables: "PORT=${{ env.PORT }} HOST=0.0.0.0 ENV=${{ inputs.environment }}"
101+
environmentVariables: "PORT=${{ env.PORT }} HOST=0.0.0.0 APP_ENV=${{ inputs.environment }}"
102102

103103
- name: fetch fqdn
104104
id: fqdn

.github/workflows/azure-deploy-www.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
registryPassword: ${{ steps.acr.outputs.pass }}
9999
targetPort: ${{ env.PORT }}
100100
ingress: external
101-
environmentVariables: "PORT=${{ env.PORT }} HOST=0.0.0.0 ENV=${{ inputs.environment }}"
101+
environmentVariables: "PORT=${{ env.PORT }} HOST=0.0.0.0 APP_ENV=${{ inputs.environment }}"
102102

103103
- name: fetch fqdn
104104
id: fqdn
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export function isProduction() {
2-
return process.env.ENV === 'production';
2+
return process.env.APP_ENV === 'production';
33
}

apps/themebuilder/react-router.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const config: Config = {
1515
buildEnd: async () => {
1616
const robotsPath = join(dirname, 'public', 'robots.txt');
1717
const robotsContent =
18-
process.env.ENV === 'production'
18+
process.env.APP_ENV === 'production'
1919
? `User-agent: *\nAllow: /`
2020
: `User-agent: *\nDisallow: /`;
2121

apps/www/react-router.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ const config: Config = {
107107
buildEnd: async () => {
108108
const robotsPath = join(dirname, 'public', 'robots.txt');
109109
const robotsContent =
110-
process.env.ENV === 'production'
110+
process.env.APP_ENV === 'production'
111111
? `User-agent: *\nAllow: /`
112112
: `User-agent: *\nDisallow: /`;
113113

0 commit comments

Comments
 (0)