Hi Firebase Studio team/community — I’m stuck in a loop where no matter what I try, my build/publish keeps failing and I’m constantly getting error logs.
What I’m trying to do
-
Deploy a Next.js app using Firebase Studio / Firebase App Hosting
-
Goal: build + publish successfully
What’s happening
-
Builds fail repeatedly
-
I keep seeing errors similar to these (sample):
error: The option `ports` does not exist. Definition values:
- In `/home/user/studio/.idx/dev.nix': [ ]
warning: $HOME ('/home/user') is not owned by you, falling back to /root
… while evaluating derivation 'idx-gc-root'
What I already tried
-
Rebuilding the environment
-
Editing
.idx/dev.nix(but I’m not sure what Firebase Studio supports vs normal Nix) -
Re-running the build/publish after changes
Questions
-
What is the correct way to expose ports / configure networking in Firebase Studio?
(It looks likeportsisn’t a valid option, but I don’t know what the replacement is.) -
Why would Firebase Studio show “$HOME not owned by you” and fall back to
/root— is that normal? -
Is there a recommended “known-good” minimal dev.nix for a Next.js App Hosting project?
-
What logs/commands should I run to pinpoint the real root cause?
Helpful info (I can provide if needed)
-
Firebase Studio URL (if relevant): [I can paste]
-
Repo structure: [I can paste]
-
My
.idx/dev.nix: [I can paste] -
Full error logs: [I can paste]
If you tell me exactly what to remove/change in dev.nix and what files to check, I’ll apply it and report back.