-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(recette1new): essai de délpoiement sur l'env recette1new
- Loading branch information
Showing
10 changed files
with
920 additions
and
721 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ on: | |
options: | ||
- production | ||
- recette | ||
- recette1new | ||
- recette2 | ||
app_version: | ||
description: app version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ export interface PublicConfig { | |
host: string; | ||
baseUrl: string; | ||
apiEndpoint: string; | ||
env: "local" | "recette" | "recette2" | "production"; | ||
env: "local" | "recette" | "recette1new" | "recette2" | "production"; | ||
version: string; | ||
productMeta: { | ||
brandName: "orion"; | ||
|
@@ -58,6 +58,26 @@ function getRecettePublicConfig(): PublicConfig { | |
}; | ||
} | ||
|
||
function getRecette1newPublicConfig(): PublicConfig { | ||
const host = "recette-1-new.orion.inserjeunes.incubateur.net"; | ||
|
||
return { | ||
sentry: { | ||
dsn: "https://[email protected]/140", | ||
enabled: true, | ||
}, | ||
crisp: { | ||
token: "no-token", | ||
}, | ||
host, | ||
baseUrl: `https://${host}`, | ||
env: "recette1new", | ||
apiEndpoint: `https://${host}/api`, | ||
version: getVersion(), | ||
productMeta: getProductMeta(), | ||
}; | ||
} | ||
|
||
function getRecette2PublicConfig(): PublicConfig { | ||
const host = "recette-2.orion.inserjeunes.incubateur.net"; | ||
|
||
|
@@ -128,6 +148,7 @@ function getEnv(): PublicConfig["env"] { | |
switch (env) { | ||
case "production": | ||
case "recette": | ||
case "recette1new": | ||
case "recette2": | ||
case "local": | ||
return env; | ||
|
@@ -142,6 +163,8 @@ function getPublicConfig(): PublicConfig { | |
return getProductionPublicConfig(); | ||
case "recette": | ||
return getRecettePublicConfig(); | ||
case "recette1new": | ||
return getRecette1newPublicConfig(); | ||
case "recette2": | ||
return getRecette2PublicConfig(); | ||
case "local": | ||
|