Skip to content

Commit

Permalink
Check node env in CI - test
Browse files Browse the repository at this point in the history
  • Loading branch information
CandelR committed Jan 14, 2025
1 parent bcd51ad commit 046c95f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
- run: echo //npm.pkg.github.com/:_authToken=${{ secrets.PERSONAL_ACCESS_TOKEN }} >> .npmrc
- run: echo "always-auth=true" >> .npmrc
- run: echo REACT_APP_NODE_ENV=staging >> ./.env
- run: echo NODE_ENV=staging >> ./.env
- name: Install dependencies
run: npm install -g yarn && yarn
- name: Install Playwright Browsers
Expand Down
2 changes: 2 additions & 0 deletions src/app/core/services/env.service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
function isProduction(): boolean {
console.log({ NODE_ENV: process.env.NODE_ENV });
console.log({ REACT_APP_NODE_ENV: process.env.REACT_APP_NODE_ENV });
if (process.env.REACT_APP_NODE_ENV === 'staging') return false;
return process.env.NODE_ENV === 'production' || process.env.REACT_APP_NODE_ENV === 'production';
}
Expand Down

0 comments on commit 046c95f

Please sign in to comment.