17 lines
315 B
TypeScript
17 lines
315 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
experimental: {
|
|
esmExternals: "loose",
|
|
serverComponentsExternalPackages: ["mongoose"]
|
|
},
|
|
webpack: (config) => {
|
|
config.experiments = {
|
|
topLevelAwait: true
|
|
};
|
|
return config;
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|