mongodb
This commit is contained in:
@@ -1,7 +1,16 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
/* config options here */
|
||||
experimental: {
|
||||
esmExternals: "loose",
|
||||
serverComponentsExternalPackages: ["mongoose"]
|
||||
},
|
||||
webpack: (config) => {
|
||||
config.experiments = {
|
||||
topLevelAwait: true
|
||||
};
|
||||
return config;
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
||||
Reference in New Issue
Block a user