Skip to content

Commit

Permalink
chore: use correct path to fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnigs committed Dec 16, 2024
1 parent 9a298b6 commit fe27d3a
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
import { defineConfig } from '@island.is/nest/config'
import { isRunningOnEnvironment } from '@island.is/shared/utils'

const isLocal = isRunningOnEnvironment('local')
export const FinancialStatementsInaoClientConfig = defineConfig({
name: 'DataverseClient',
load: (env) => ({
basePath: env.required(
'FINANCIAL_STATEMENTS_INAO_BASE_PATH',
'https://dev-re.crm4.dynamics.com/api/data/v9.1',
isLocal
? 'https://dev-re.crm4.dynamics.com/api/data/v9.1'
: 'https://star-re.crm4.dynamics.com/api/data/v9.1',
),
issuer: env.required(
'FINANCIAL_STATEMENTS_INAO_ISSUER',
'https://login.microsoftonline.com/05a20268-aaea-4bb5-bb78-960b0462185e/v2.0',
),
scope: env.required(
'FINANCIAL_STATEMENTS_INAO_SCOPE',
'https://dev-re.crm4.dynamics.com/.default',
isLocal
? 'https://dev-re.crm4.dynamics.com/.default'
: 'https://star-re.crm4.dynamics.com/.default',
),
tokenEndpoint: env.required(
'FINANCIAL_STATEMENTS_INAO_TOKEN_ENDPOINT',
Expand Down

0 comments on commit fe27d3a

Please sign in to comment.