Introduce TYPEORM_EXTRA env variable (#770)

Co-authored-by: Florent FAYOLLE <florent.fayolle@beta.gouv.fr>
This commit is contained in:
Florent 2023-11-27 16:47:56 +01:00 committed by GitHub
parent 7d57114d21
commit 961b1c1956
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -396,6 +396,7 @@ TYPEORM_PASSWORD | password to use
TYPEORM_PORT | port number for db if not the default for that db type TYPEORM_PORT | port number for db if not the default for that db type
TYPEORM_TYPE | set to 'sqlite' or 'postgres' TYPEORM_TYPE | set to 'sqlite' or 'postgres'
TYPEORM_USERNAME | username to connect as TYPEORM_USERNAME | username to connect as
TYPEORM_EXTRA | any other properties to pass to TypeORM in JSON format
#### Testing: #### Testing:

View File

@ -142,6 +142,7 @@ export function getTypeORMSettings(): DataSourceOptions {
"subscribers": [ "subscribers": [
`${codeRoot}/app/gen-server/subscriber/*.js` `${codeRoot}/app/gen-server/subscriber/*.js`
], ],
...JSON.parse(process.env.TYPEORM_EXTRA || "{}"),
...cache, ...cache,
}; };
} }