Stripe Pricing + Subscriptions
This commit is contained in:
@@ -25,10 +25,6 @@ import { UserModule } from './user/user.module.js';
|
||||
// const __dirname = path.dirname(__filename);
|
||||
|
||||
function loadEnvFiles() {
|
||||
// Load the .env file
|
||||
dotenv.config();
|
||||
console.log('Loaded .env file');
|
||||
|
||||
// Determine which additional env file to load
|
||||
let envFilePath = '';
|
||||
const host = process.env.HOST_NAME || '';
|
||||
@@ -48,6 +44,13 @@ function loadEnvFiles() {
|
||||
} else {
|
||||
console.log(`No additional .env file found for HOST_NAME: ${host}`);
|
||||
}
|
||||
|
||||
// Load the .env file
|
||||
dotenv.config();
|
||||
console.log('Loaded .env file');
|
||||
// Output all loaded environment variables
|
||||
console.log('Loaded environment variables:');
|
||||
console.log(JSON.stringify(process.env, null, 2));
|
||||
}
|
||||
|
||||
loadEnvFiles();
|
||||
|
||||
Reference in New Issue
Block a user