/** @type {import('next').NextConfig} */ const nextConfig = { // Standalone output so PM2 can run `node .next/standalone/server.js` on the Plesk VPS. output: "standalone", reactStrictMode: true, eslint: { // Lint is run as its own step in CI; don't fail production builds on lint. ignoreDuringBuilds: true, }, images: { remotePatterns: [ // DALLĀ·E asset URLs (OpenAI blob storage) used before they are persisted to local disk. { protocol: "https", hostname: "oaidalleapiprodscus.blob.core.windows.net" }, { protocol: "https", hostname: "**.blob.core.windows.net" }, ], }, // Server-only packages that should be required at runtime, not bundled by webpack. // better-auth ships internal adapters (kysely) that break webpack's ESM analysis. serverExternalPackages: ["pg-boss", "@prisma/client", "better-auth"], }; export default nextConfig;