Skip to content

Commit

Permalink
Use dapla team api in nais (#370)
Browse files Browse the repository at this point in the history
Internal ref: [DPSKY-878]
  • Loading branch information
johnksv authored Nov 28, 2024
1 parent 65ec2ba commit 47cae9e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ If you don't want to use the Nix development environment you have to follow thes
- Set environment variables needed by the application:

```sh
touch .env.local && printf 'DAPLA_TEAM_API_URL=https://dapla-team-api-v2.staging-bip-app.ssb.no\nPORT=3000\nDAPLA_CTRL_ADMIN_GROUPS=dapla-stat-developers,dapla-skyinfra-developers,dapla-utvik-developers\nDAPLA_CTRL_DOCUMENTATION_URL=https://statistics-norway.atlassian.net/wiki/x/EYC24g' >> .env.local
touch .env.local && printf 'DAPLA_TEAM_API_URL=https://dapla-team-api.intern.test.ssb.no\nPORT=3000\nDAPLA_CTRL_ADMIN_GROUPS=dapla-stat-developers,dapla-skyinfra-developers,dapla-utvik-developers\nDAPLA_CTRL_DOCUMENTATION_URL=https://statistics-norway.atlassian.net/wiki/x/EYC24g' >> .env.local
```

### ESLint and Prettier
Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
perSystem = {pkgs, ...}: {
devShells.default = pkgs.mkShell {
shellHook = ''
export DAPLA_TEAM_API_URL=https://dapla-team-api-v2.staging-bip-app.ssb.no
export DAPLA_TEAM_API_URL=https://dapla-team-api.intern.test.ssb.no
export PORT=3000
export DAPLA_CTRL_ADMIN_GROUPS=dapla-stat-developers,dapla-skyinfra-developers,dapla-utvik-developers
export DAPLA_CTRL_DOCUMENTATION_URL=https://statistics-norway.atlassian.net/wiki/x/EYC24g
Expand Down
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if (!process.env.DAPLA_TEAM_API_URL) {

const app = express()
const PORT = process.env.PORT || 3000
const DAPLA_TEAM_API_URL = process.env.DAPLA_TEAM_API_URL || 'https://dapla-team-api-v2.staging-bip-app.ssb.no'
const DAPLA_TEAM_API_URL = process.env.DAPLA_TEAM_API_URL || 'https://dapla-team-api.intern.test.ssb.no'

app.use(
'/klass',
Expand Down

0 comments on commit 47cae9e

Please sign in to comment.