-
Notifications
You must be signed in to change notification settings - Fork 27.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NextJS build always going out of heap memory when building #76704
Comments
I would advise you firstly to cancel that service account, delete from your repo and add to .gitignore so you can make a new one. Anyone can have access to your firestore, firebase auth or any kind of firebase service that you have right now for this project. |
Yeah, I know, but thats not a production environment. But I wall add it to gitignore. Thank you! |
This comment has been minimized.
This comment has been minimized.
Yes, I actually found a workaround, if you add the following experimental feature to the config it will use less RAM. import type { NextConfig } from "next"; const nextConfig: NextConfig = { export default nextConfig; |
Link to the code that reproduces this issue
https://github.com/Falling12/loyalty-backend
To Reproduce
Current vs. Expected behavior
Whats happening:
Excepted behavior:
The app should build normally
Provide environment information
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
next build (local)
Additional context
I'm developing this not really large app for a restaurant but recently got this issue where I can't build the app. It can happen that my code is wrong somewhere but I don't really think this. I would be pleased if someone could look into my code aswell. (The build also failed with the same issue when deploying to Vercel)
Thank you for the help in advance!
The text was updated successfully, but these errors were encountered: