Forráskód Böngészése

Merge pull request #10573 from growilabs/fix/skip-withsuperjson-in-production-server

fix: Skip withSuperjson() in production server
Yuki Takei 4 hónapja
szülő
commit
63023ee82f
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      apps/app/next.config.js

+ 3 - 1
apps/app/next.config.js

@@ -160,8 +160,10 @@ module.exports = async (phase) => {
   };
   };
 
 
   // production server
   // production server
+  // Skip withSuperjson() in production server phase because the pages directory
+  // doesn't exist in the production build and withSuperjson() tries to find it
   if (phase === PHASE_PRODUCTION_SERVER) {
   if (phase === PHASE_PRODUCTION_SERVER) {
-    return withSuperjson()(nextConfig);
+    return nextConfig;
   }
   }
 
 
   const withBundleAnalyzer = require('@next/bundle-analyzer')({
   const withBundleAnalyzer = require('@next/bundle-analyzer')({