Skip to content

Commit

Permalink
fix dev endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
taustad committed Jul 28, 2023
1 parent b26f93e commit 0e3ebfa
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions src/api/environmentConfig.ts
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
export const ResolveConfiguration = (env: string) => {
switch (env) {
case "FPRD":
return {
REACT_APP_API_BASE_URL: "https://datasheetapi-datasheet-prod.radix.equinor.com",
BACKEND_APP_SCOPE: ["api://e1c7f3bd-1107-469a-98f9-7cf827d5df8c/Datasheet.Write"],
}
case "FQA":
return {
REACT_APP_API_BASE_URL: "https://datasheetapi-datasheet-qa.radix.equinor.com",
BACKEND_APP_SCOPE: ["api://412803ed-0c05-44a9-b433-b270706a6099/Datasheet.Write"],
}
case "CI":
return {
REACT_APP_API_BASE_URL: "https://datasheetapi-datasheet-dev.radix.equinor.com",
BACKEND_APP_SCOPE: ["api://412803ed-0c05-44a9-b433-b270706a6099/Datasheet.Write"],
}
case "PR":
return {
REACT_APP_API_BASE_URL: "https://datasheetapi-datasheet-dev.radix.equinor.com",
BACKEND_APP_SCOPE: ["api://412803ed-0c05-44a9-b433-b270706a6099/Datasheet.Write"],
}
case "dev":
return {
REACT_APP_API_BASE_URL:
"https://datasheetapi-datasheet-dev.radix.equinor.com",
BACKEND_APP_SCOPE: [
"api://412803ed-0c05-44a9-b433-b270706a6099/Datasheet.Write",
],
}
default:
throw new Error(`Unknown env '${env}'`)
case "FPRD":
return {
REACT_APP_API_BASE_URL: "https://datasheetapi-datasheet-prod.radix.equinor.com",
BACKEND_APP_SCOPE: ["api://e1c7f3bd-1107-469a-98f9-7cf827d5df8c/Datasheet.Write"],
}
case "FQA":
return {
REACT_APP_API_BASE_URL: "https://datasheetapi-datasheet-qa.radix.equinor.com",
BACKEND_APP_SCOPE: ["api://412803ed-0c05-44a9-b433-b270706a6099/Datasheet.Write"],
}
case "CI":
return {
REACT_APP_API_BASE_URL: "https://datasheetapi-datasheet-dev.radix.equinor.com",
BACKEND_APP_SCOPE: ["api://412803ed-0c05-44a9-b433-b270706a6099/Datasheet.Write"],
}
case "PR":
return {
REACT_APP_API_BASE_URL: "https://datasheetapi-datasheet-dev.radix.equinor.com",
BACKEND_APP_SCOPE: ["api://412803ed-0c05-44a9-b433-b270706a6099/Datasheet.Write"],
}
case "dev":
return {
REACT_APP_API_BASE_URL:
"http://localhost:5000",
BACKEND_APP_SCOPE: [
"api://412803ed-0c05-44a9-b433-b270706a6099/Datasheet.Write",
],
}
default:
throw new Error(`Unknown env '${env}'`)
}
}

0 comments on commit 0e3ebfa

Please sign in to comment.