Fix some for production

This commit is contained in:
mahmood
2026-09-10 12:17:47 +03:30
parent 78e148a6b5
commit cea3b808d8
121 changed files with 86493 additions and 211 deletions
+26
View File
@@ -0,0 +1,26 @@
/**
* esbuild config for Docker release bundle (apps/api/release/app.js).
* Used by: node scripts/bundle-release.cjs
*/
const path = require('path');
module.exports = {
entryPoints: [path.join(__dirname, 'dist/main.js')],
outfile: path.join(__dirname, 'release/app.js'),
bundle: true,
platform: 'node',
target: 'node20',
format: 'cjs',
// Prisma ships native binaries — keep out of the JS bundle and vendor into release/
// Nest optional peers are required dynamically and are not used by this API.
external: [
'@prisma/client',
'.prisma/client',
'@nestjs/microservices',
'@nestjs/microservices/*',
'@nestjs/websockets',
'@nestjs/websockets/*',
],
sourcemap: false,
logLevel: 'info',
};