Study/scripts/build-server.mjs
Elijah 74a98ac1f1 Add the V2 web app: design system, shell, study flows, AI, settings, sharing
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-11 08:53:01 -07:00

14 lines
353 B
JavaScript

// Bundles the server into one file. Dependencies stay external and are installed in the image.
import { build } from 'esbuild';
await build({
entryPoints: ['server/main.ts'],
outfile: 'dist/server/main.js',
bundle: true,
platform: 'node',
format: 'esm',
target: 'node24',
packages: 'external',
sourcemap: true,
logLevel: 'info',
});