Next.js Discord

Discord Forum

optimizing build hangs forever

Answered
Indian Spitz posted this in #help-forum
Open in Discord
Indian SpitzOP
ive removed package-lock.json, .next folder and node modules, pnpm install then pnpm run build and it still hangs
Answered by Indian Spitz
out of memory 😭
View full answer

11 Replies

Keyhole wasp
what is your next.config.js?
Indian SpitzOP
ELIFECYCLE  Command failed with exit code 137.
@Keyhole wasp what is your next.config.js?
Indian SpitzOP
// @ts-check
import createMDX from "fumadocs-mdx/config";

const withMDX = createMDX({
  mdxOptions: {
    lastModifiedTime: "git",
  },
});
/** @type {import('next').NextConfig} */
const config = {
  reactStrictMode: true,
};

export default withMDX(config);
@Keyhole wasp what is your next.config.js?
Indian SpitzOP
next.config.mjs
@Indian Spitz ELIFECYCLE  Command failed with exit code 137.
Indian SpitzOP
out of memory 😭
Answer
Keyhole wasp
there you go
are you doing this in a docker container?
Indian SpitzOP
no
on a crap vps
it didnt tell me any errors till now
Keyhole wasp
another job well done 👏