environment.ts 511 B

1234567891011121314151617
  1. import dotenv from "dotenv";
  2. if (process.env.NODE_ENV == "dev") {
  3. dotenv.config({
  4. path: "../.env"
  5. });
  6. dotenv.config({
  7. path: "../db.env"
  8. });
  9. process.env.MONGO_DB_HOST = "localhost";
  10. process.env.TYPEORM_HOST = "localhost";
  11. process.env.FACEDETECT_URL = "localhost:8081";
  12. process.env.TYPEORM_USERNAME = process.env.DB_USERNAME;
  13. process.env.TYPEORM_PASSWORD = process.env.DB_PASSWORD;
  14. process.env.TYPEORM_DATABASE = process.env.DB_NAME;
  15. }