feat: prepare for Vercel deployment with PostgreSQL migration

This commit is contained in:
kaunghtut24 2025-06-16 15:36:08 +05:30
parent 38ab8a260c
commit ffdc8c5b6c
8 changed files with 97 additions and 27 deletions

14
vercel-post-deploy.js Normal file
View file

@ -0,0 +1,14 @@
const { execSync } = require('child_process');
async function runMigrations() {
try {
console.log('Running database migrations...');
execSync('npm run db:migrate', { stdio: 'inherit' });
console.log('Migrations completed successfully!');
} catch (error) {
console.error('Migration failed:', error);
process.exit(1);
}
}
runMigrations();