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;