- API and web images built with turbo prune; the API image also runs the worker and migrations. Non-root, health-checked, Debian slim. - docker compose up -d --build starts Postgres, Redis (persistent), a one-shot migrate job, API, worker and web, in dependency order. - Fix the API production build (tsup flags moved to a config file) and bundle the migration script; silence Postgres NOTICE noise. - npm run infra:up now starts only Postgres and Redis for hot-reload dev. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MzFywujuH9TiuXbr9vjoX8
13 lines
446 B
TypeScript
13 lines
446 B
TypeScript
import { fileURLToPath } from 'node:url';
|
|
import type { NextConfig } from 'next';
|
|
|
|
const config: NextConfig = {
|
|
transpilePackages: ['@musicshare/shared'],
|
|
// Self-contained server bundle for the Docker image (only the files it needs).
|
|
output: 'standalone',
|
|
// Monorepo: trace files from the repo root so the shared package is included.
|
|
outputFileTracingRoot: fileURLToPath(new URL('../..', import.meta.url)),
|
|
};
|
|
|
|
export default config;
|