text changes and remove infra folder
This commit is contained in:
@@ -18,7 +18,7 @@ function getAWSCredentials() {
|
||||
*/
|
||||
function getAWSConfig() {
|
||||
const config = {
|
||||
region: process.env.AWS_REGION || "us-east-1",
|
||||
region: process.env.AWS_REGION,
|
||||
};
|
||||
|
||||
const credentials = getAWSCredentials();
|
||||
|
||||
@@ -8,7 +8,7 @@ if (!process.env.DB_NAME && process.env.NODE_ENV) {
|
||||
const result = dotenv.config({ path: envFile });
|
||||
if (result.error && process.env.NODE_ENV !== "production") {
|
||||
console.warn(
|
||||
`Warning: Could not load ${envFile}, using existing environment variables`
|
||||
`Warning: Could not load ${envFile}, using existing environment variables`,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,7 @@ const dbConfig = {
|
||||
password: process.env.DB_PASSWORD,
|
||||
database: process.env.DB_NAME,
|
||||
host: process.env.DB_HOST,
|
||||
port: process.env.DB_PORT || 5432,
|
||||
port: process.env.DB_PORT,
|
||||
dialect: "postgres",
|
||||
logging: false,
|
||||
pool: {
|
||||
@@ -52,7 +52,7 @@ const sequelize = new Sequelize(
|
||||
dialect: dbConfig.dialect,
|
||||
logging: dbConfig.logging,
|
||||
pool: dbConfig.pool,
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
// Export the sequelize instance as default (for backward compatibility)
|
||||
|
||||
Reference in New Issue
Block a user