15 lines
496 B
TypeScript
15 lines
496 B
TypeScript
import type { NextConfig } from 'next';
|
|
import './env';
|
|
|
|
const config: NextConfig = {
|
|
transpilePackages: ['@repo/db', '@repo/api', '@repo/ui', '@repo/domain'],
|
|
reactStrictMode: true,
|
|
poweredByHeader: false,
|
|
// Pino uses worker_threads via pino-pretty. Next's server bundler doesn't
|
|
// emit the worker chunk correctly — mark these as external so they're
|
|
// required straight from node_modules at runtime.
|
|
serverExternalPackages: ['pino', 'pino-pretty'],
|
|
};
|
|
|
|
export default config;
|