Clean Image
All checks were successful
CI for GGS-CRON / build-and-test (push) Successful in 2m58s
CI for GGS-CRON / build-docker (push) Successful in 1m41s

This commit is contained in:
Ittipat Lusuk 2025-08-11 12:41:28 +07:00
parent 8602f8fc3f
commit cf93a9cfe2
6 changed files with 515 additions and 12 deletions

13
build.js Normal file
View file

@ -0,0 +1,13 @@
// build.js
const esbuild = require('esbuild');
esbuild.build({
entryPoints: ['./bin/www'],
bundle: true,
platform: 'node',
target: ['node20'],
outfile: 'dist/app.js',
// external: ['some-large-lib'],
sourcemap: false,
minify: true,
}).catch(() => process.exit(1));