We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2e50c64 + 869e116 commit 63023eeCopy full SHA for 63023ee
apps/app/next.config.js
@@ -160,8 +160,10 @@ module.exports = async (phase) => {
160
};
161
162
// production server
163
+ // Skip withSuperjson() in production server phase because the pages directory
164
+ // doesn't exist in the production build and withSuperjson() tries to find it
165
if (phase === PHASE_PRODUCTION_SERVER) {
- return withSuperjson()(nextConfig);
166
+ return nextConfig;
167
}
168
169
const withBundleAnalyzer = require('@next/bundle-analyzer')({
0 commit comments