Skip to content

Commit

Permalink
WIP: 2023-09-15 15:40:56
Browse files Browse the repository at this point in the history
  • Loading branch information
baptou12 committed Sep 15, 2023
1 parent a808aa0 commit 7b24cfd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions backend/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ console.log(dotenv.config({ debug: true }).parsed)
*/
const config: Configuration = {
env: process.env.NODE_ENV || "development",
testing_string: process.env.TESTING_STRING || "test",
baseURL:
process.env.MES_AIDES_ROOT_URL ||
process.env.DEPLOY_URL || // Netlify deploy apps
Expand Down Expand Up @@ -100,4 +101,6 @@ const config: Configuration = {
},
}

console.log("TESTING_STRING", config.testing_string)

export default Object.freeze(config)
1 change: 1 addition & 0 deletions backend/types/config.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export interface Configuration {
env: string
testing_string: string
baseURL: string
franceConnect: {
root?: string
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"copy:env": "[ -f .env ] && cp .env dist-server/.env || echo 'No .env file found, skipping'",
"build:iframes": "NODE_OPTIONS='--loader ts-node/esm' webpack --config iframes/iframes.config.ts",
"build:front": "vite build",
"build:server": "npm run copy:env && tsc -p tsconfig.server.json",
"build:server": "tsc -p tsconfig.server.json",
"preview": "vite preview",
"lint": "eslint backend data iframes lib src --ext ts,js,vue --max-warnings 0",
"ci": "npm run stats && NODE_ENV=production node ./dist-server/backend/server.js",
Expand Down

0 comments on commit 7b24cfd

Please sign in to comment.