diff --git a/apps/web/next.config.js b/apps/web/next.config.js index 555890c..bd4b01a 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -14,7 +14,7 @@ const nextConfig = { }, ]; }, - webpack(config) { + webpack(config, { isServer }) { config.experiments = { ...config.experiments, topLevelAwait: true }; config.resolve.fallback = { fs: false, @@ -37,6 +37,10 @@ const nextConfig = { }), ); + if (isServer) { + config.externals.push('o1js'); + } + return config; }, compress: false,