feat: inicializar repositorio oficial do clube67.com

This commit is contained in:
VPS 4 Builder
2026-05-18 18:32:55 +02:00
commit a7fd18eb55
96 changed files with 17059 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
import dotenv from 'dotenv';
import path from 'path';
// Enforce loading the .env from the knexfile directory (project root)
dotenv.config({ path: path.join(__dirname, '.env') });
const config = {
client: 'pg',
connection: {
host: process.env.DB_HOST,
port: parseInt(process.env.DB_PORT || '5432', 10),
user: process.env.DB_USER,
password: process.env.DB_PASSWORD,
database: process.env.DB_NAME,
},
pool: { min: 2, max: 10 },
migrations: {
directory: './src/database/migrations',
tableName: 'knex_migrations'
}
};
export default config;
module.exports = config;