firebase / firebase-tools

The Firebase Command Line Tools
MIT License
3.97k stars 916 forks source link

Cannot deploy NextJS on Firebase App Hosting Backend, IF it's inside a sub directory #7263

Closed ashleyrudland closed 2 weeks ago

ashleyrudland commented 1 month ago

Like most NextJS apps today, they are typically not in the root directory.

My bug could be fixed with a simple UI input or cli param called "working directory" / "--dir"

This would run the normal npm run build, but where ever this folder is specified.

I'm a 5 year customer of Firebase, we do around $22K/mo, I run all my apps on it accept for front end hosting, that's all on Vercel.

I'll migrate the entire thing to Firebase today if this bug is fixed - faster round trip time from NextJS to Firestore DB calls = better product experience.

Thanks in advance! Ash.

r0hin commented 3 weeks ago

+1, same issue. App hosting asks for the app directory on setup, but setting one causes builds to fail.

blidd-google commented 2 weeks ago

Hi folks, we've released a fix that allows deployments from subdirectories and the change is rolling out to our prod environments soon. Thanks for your patience!