15 lines
298 B
JavaScript
15 lines
298 B
JavaScript
|
|
/** @type {import('next').NextConfig} */
|
||
|
|
const nextConfig = {
|
||
|
|
experimental: {
|
||
|
|
serverComponentsExternalPackages: ['oracledb']
|
||
|
|
},
|
||
|
|
webpack: (config, { isServer }) => {
|
||
|
|
if (isServer) {
|
||
|
|
config.externals.push('oracledb');
|
||
|
|
}
|
||
|
|
return config;
|
||
|
|
}
|
||
|
|
};
|
||
|
|
|
||
|
|
module.exports = nextConfig;
|