Skip to content

Commit

Permalink
More cherry pick from #17008
Browse files Browse the repository at this point in the history
  • Loading branch information
AndesKrrrrrrrrrrr committed Dec 4, 2024
1 parent 7c45c97 commit 9b490e4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/consultation-portal/infra/samradsgatt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const serviceSetup = (services: {
prod: 'innskra.island.is',
},
NEXTAUTH_URL: {
local: 'http://localhost:4200/samradsgatt/api/auth',
dev: 'https://beta.dev01.devland.is/samradsgatt/api/auth',
staging: 'https://beta.staging01.devland.is/samradsgatt/api/auth',
prod: 'https://island.is/samradsgatt/api/auth',
Expand Down
8 changes: 8 additions & 0 deletions apps/consultation-portal/proxy.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const proxyConfig = {
'/api/graphql': {
target: process.env.API_URL ?? 'http://localhost:4444',
secure: false,
},
}

export default proxyConfig
3 changes: 2 additions & 1 deletion apps/consultation-portal/server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { bootstrap } from '@island.is/infra-next-server'
import proxyConfig from './proxy.config.json'
import proxyConfig from './proxy.config'

bootstrap({
name: 'consultation-portal',
appDir: 'apps/consultation-portal',
Expand Down

0 comments on commit 9b490e4

Please sign in to comment.