mirror of
https://github.com/hanzo-apps/waitlist.git
synced 2026-10-30 14:48:32 +00:00
Containerize apps/web (@hanzo/waitlist-demo, Next.js 16). Enable Next standalone output (output: standalone + outputFileTracingRoot for the pnpm monorepo so the @hanzo/waitlist widget is bundled). Add multi-stage Dockerfile (pnpm+turbo build -> minimal node:22-slim standalone server, no nginx/caddy, port 3000) and .github/workflows/build.yml that builds+pushes ghcr.io/hanzoai/waitlist on v* tags via the canonical hanzoai/.github docker-build reusable workflow on the self-hosted arcd fleet. Semver-only tags. Co-authored-by: hanzo-dev <[email protected]>
16 lines
525 B
JavaScript
16 lines
525 B
JavaScript
import { fileURLToPath } from 'node:url'
|
|
import { dirname, join } from 'node:path'
|
|
|
|
const __dirname = dirname(fileURLToPath(import.meta.url))
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
// Emit a self-contained server bundle for the container runtime.
|
|
output: 'standalone',
|
|
// This app lives in a pnpm workspace; point file-tracing at the repo
|
|
// root so the @hanzo/waitlist workspace dep is bundled into standalone.
|
|
outputFileTracingRoot: join(__dirname, '../../'),
|
|
}
|
|
|
|
export default nextConfig
|