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;