20 lines
561 B
JavaScript
20 lines
561 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
// 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;
|