import type { NextConfig } from 'next'; const nextConfig: NextConfig = { output: 'standalone', serverExternalPackages: [ 'pino', 'pino-pretty', 'bullmq', 'ioredis', 'minio', 'postgres', 'better-auth', 'nodemailer', ], images: { remotePatterns: [{ protocol: 'https', hostname: '*.portnimara.com' }], }, experimental: { typedRoutes: true, }, outputFileTracingIncludes: { // Bundle the EOI source PDF so the in-app EOI pathway can read it at // runtime in the standalone build. Reading via fs.readFile from // process.cwd() requires the file to be traced explicitly. '/api/v1/document-templates/**': ['./assets/eoi-template.pdf'], }, }; export default nextConfig;