TYPEORM_ENTITIES
andTYPEORM_MIGRATIONS
env variables are only used by the migration commands located in the package.json. Because while running the CLI, the location of those files are insrc
but while configurations are loaded in the application, the scope is in thedist
folder So we are using that path in the configuration. Another solution would be usingormconfig.json
but since the other values are shared and TypeOrm has the ability to parse env variables, I didn't wanted to manage same configurations in two different places. Instead, we need to use TYPEORM env variables and keep an .env file while using the migration commands.
-
Notifications
You must be signed in to change notification settings - Fork 0
oguzcan-yavuz/fda-product-service
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
NestJS Boilerplate with unit/integration/e2e test examples and SemaphoreCI integration
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published