/** @type {import('next').NextConfig} */ const nextConfig = { output: 'standalone', // <--- ADICIONE ISSO // Next 16+: use `serverExternalPackages` instead of experimental.serverComponentsExternalPackages serverExternalPackages: ['oracledb'], // Add an explicit (empty) Turbopack config so Next 16 doesn't error // when using Turbopack together with a webpack config. turbopack: {}, webpack: (config, { isServer }) => { if (isServer) { config.externals = config.externals || []; config.externals.push('oracledb'); } return config; }, }; export default nextConfig;