Next.js Discord

Discord Forum

Deploying Next.js website to Firebase (Migrated from React to Next.js)

Unanswered
American black bear posted this in #help-forum
Open in Discord
American black bearOP
Hello everyone, I am having trouble with deployment, can someone help me to figure out.

Recently, I migrated my website from React to Next.js version@14.0.4. I fixed lots of bugs and errors in Nextjs while migrating such as Routing system, removed react-router-dom, re-arranged file structure. My problem is when I build and try to build my migrated Next.js website to Firebase, I am having error on deploying. It is saying Your proposed upload is larger than the maximum object size specified in your Policy Document. when I followed a blog on how to deploy Next.js app to Firebase attached link below:

In blog, same error occured but it was 30MB size, in mine it is becoming 360MB, I do not know from where it is taking much space.

I tried this blog link: https://dev.to/rowaxl/what-i-struggled-with-next-js-using-firebase-hosting-and-enable-ssr-4e67

7 Replies

American black bearOP
@Ray Thanks bro, but I do not know which of my packages exactly taking more space, is there a way of knowing this?
American black bearOP
@Ray Thanks bro, I checked my packages but I add all of their size it is showing me 22MB and also minimized their size by using your first link, but still my next build is 361.86 MB
Here it is
oh i'm not sure then, maybe you should ask for their support
American black bearOP
yeah thanks bro, I am waiting their answer