Next.js Discord

Discord Forum

Need Desperate Help. Production missing static chunks.

Unanswered
Jersey Wooly posted this in #help-forum
Open in Discord
Jersey WoolyOP
It only fails on production, https://www.hubnx.com/
It causing a lot of problems when doing async server calls and redirect, failed most of times.
I have load balancer before several servers running next app
My CI/CD would create new server instances with most updated code and terminate the old ones
I'm using page router
I'm using Next 14.0.3

I've tried debugging for two weeks, need some serious help from next devs

Here's my next config
const nextConfig = {
  experimental: {
    // appDir: true,
    swcPlugins: [
      [
        'next-superjson-plugin',
        {
          excluded: [],
        },
      ],
    ],
  },
  reactStrictMode: true,
  compiler: {
    removeConsole: process.env.NODE_ENV === 'production',
  },
  generateBuildId: async () => {
    return process.env.CODEBUILD_BUILD_ID ?? '1';
  },
};

0 Replies