Skip to content

Commit

Permalink
Merge pull request #594 from knowit/fix/9-opprette-opprette-AD-pålogging
Browse files Browse the repository at this point in the history
[Fix] Opprette AD pålogging
  • Loading branch information
joacimds committed Jun 10, 2024
2 parents 33f0bfa + fccb8be commit 48448b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- master
workflow_dispatch:

env:
REACT_APP_ENV: development

jobs:
deploy_server:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -61,7 +64,7 @@ jobs:

- name: Add env variable to .env file
working-directory: ./apps/web
run: echo REACT_APP_ENV=development >> .env
run: echo "REACT_APP_ENV=$REACT_APP_ENV" >> .env

- name: Install dependencies
working-directory: apps/web
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ function getConfig() {
case 'development':
return createDevConfig()
default:
throw new Error(`Invalid NODE_ENV ${process.env.REACT_APP_ENV}`)
throw new Error(`Invalid REACT_APP_ENV ${process.env.REACT_APP_ENV}`)
}
}

0 comments on commit 48448b5

Please sign in to comment.