Skip to content

Commit

Permalink
Legger til wonderwall
Browse files Browse the repository at this point in the history
  • Loading branch information
almyy committed Nov 27, 2024
1 parent c85ff93 commit c144216
Show file tree
Hide file tree
Showing 93 changed files with 2,359 additions and 1,389 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build_deploy_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
- 'dev'
- 'mock'
- 'q0'
- 'preprod'
workflow_call:
inputs:
config-file-name:
Expand Down
5 changes: 1 addition & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run lintStaged
npm run lintStaged
3 changes: 0 additions & 3 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run tsc
npm run test
10 changes: 6 additions & 4 deletions nais/dev/dev.yaml → nais/dev/preprod.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: "nais.io/v1alpha1"
kind: "Application"
metadata:
name: sosialhjelp-innsyn-dev
name: sosialhjelp-innsyn
namespace: teamdigisos
labels:
team: teamdigisos
Expand All @@ -24,17 +24,19 @@ spec:
replicas:
min: 1
max: 2
ingresses:
- "https://sosialhjelp-innsyn-dev.intern.dev.nav.no/sosialhjelp/innsyn"
accessPolicy:
outbound:
rules:
- application: nav-dekoratoren
namespace: personbruker
- application: sosialhjelp-innsyn-api
external:
- host: dekoratoren.ekstern.dev.nav.no
- host: digisos.intern.dev.nav.no
- host: teamdigisos-unleash-api.nav.cloud.nais.io
- host: login.ekstern.dev.nav.no
inbound:
rules:
- application: wonderwall-innsyn
resources:
limits:
cpu: 200m
Expand Down
9 changes: 9 additions & 0 deletions nais/envs/.env.preprod
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
NEXT_PUBLIC_INNSYN_API_SINGLE_LOGOUT_URL=https://loginservice.nav.no/slo
NEXT_INNSYN_API_BASE_URL=https://www.ekstern.dev.nav.no/sosialhjelp/wonderwall-innsyn
NEXT_PUBLIC_INNSYN_API_BASE_URL=https://www.ekstern.dev.nav.no/sosialhjelp/wonderwall-innsyn
NEXT_PUBLIC_LOGIN_BASE_URL=https://login.ekstern.dev.nav.no
NEXT_INNSYN_API_HOSTNAME=sosialhjelp-innsyn
NEXT_PUBLIC_INNSYN_ORIGIN=https://www.ekstern.dev.nav.no
NEXT_PUBLIC_DEKORATOR_MILJO=dev
NEXT_PUBLIC_RUNTIME_ENVIRONMENT=preprod
NEXT_PUBLIC_ASSET_PREFIX=https://cdn.nav.no/teamdigisos/sosialhjelp-innsyn
9 changes: 5 additions & 4 deletions orval.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ export default {
target: "src/generated/innsyn-api.ts",
schemas: "src/generated/model",
client: "react-query",
baseUrl: "/sosialhjelp/innsyn/api/innsyn-api",
httpClient: "fetch",
mock: true,
override: {
mutator: {
path: "./src/axios-instance.ts",
name: "axiosInstance",
fetch: {
includeHttpStatusReturnType: false,
},
},
mock: true,
},
hooks: {
afterAllFilesWrite: "prettier --write",
Expand Down
Loading

0 comments on commit c144216

Please sign in to comment.