0

When I run pNpm build locally, it builds successfully without any errors. However, when I deploy it on Vercel, it keeps failing and returns this error:

Static worker unexpectedly exited with code: null and signal: SIGTERM

I'm pretty sure I don't have .next folder in my repository.

This is my next.config.js:

/** @type {import('next').NextConfig} */
const nextConfig = {
  webpack: (config) => {
    config.module.rules.push({
      test: /\.node$/,
      use: "node-loader",
    });

    return config;
  },
  images: {
    domains: ["https://firebasestorage.googleapis.com/"],
  },
};

module.exports = nextConfig;

image

jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
  • 1
    Have you actually taken a look at the [linked documentation](https://nextjs.org/docs/messages/static-page-generation-timeout) section? Next.js tries to restart the worker pool of the static page generation when no progress happens for a while, to avoid hanging builds. – Fabio Nettis Aug 28 '23 at 08:41
  • 1
    I increased the `staticPageGenerationTimeout` to 180 and it's working now, thank you @FabioNettis – Le Vu Minh Huy Aug 29 '23 at 12:17

0 Answers0