firebase / firebase-tools

The Firebase Command Line Tools
MIT License
4.02k stars 937 forks source link

Nuxt + firebase deployment for web frameworks failing. #5964

Closed Rohithgilla12 closed 2 weeks ago

Rohithgilla12 commented 1 year ago

[REQUIRED] Environment info

firebase-tools: image

Platform: macOS

[REQUIRED] Test case

When deploying a nuxt app to use firebase hosting, the deployment is successful but the app would resolve to

image

Deployed domain https://delete-me-fe49e.web.app/

[REQUIRED] Steps to reproduce

When in the interactive firebase deploy command, it asked for choosing regions for hosting, it asked if the project that is detected is nuxt or not. I did answer em right.

[REQUIRED] Expected behavior

The app is deployed and I see my nuxt app.

[REQUIRED] Actual behavior

Getting a 404 error. image

aalej commented 1 year ago

Hi @Rohithgilla12. Apologies for the delay, and thanks for providing detailed steps on how to reproduce the issue. I was able to replicate the behavior you mentioned. That said, I’ll notify our team about this so that they can take a look. One thing I noticed is that when using firebase-tools v12.1.0, I did not encounter any issues deploying.

Rohithgilla12 commented 1 year ago

@aalej

Did the similar steps with firebase tools version 12.1.0

image

Output of the console image

Output of the web app image

Sometimes this image

Link for the deployed site https://delete-me-fe49e.web.app

ekwus commented 1 year ago

Hey

I've got the exact same issue, however downgrading to 12.1.0 didn't solve it for me. Everything working in the dev mode but also doesn't work in the emulator.

Additional bit of info is that the 404 Not Found page has the Nuxt favicon.ico so in part it is working

Cheers

Dave

leoortizz commented 2 weeks ago

@Rohithgilla12 @ekwus are you guys still having this issue with the latest firebase-tools version?

ekwus commented 2 weeks ago

Hey

At the time I had to using Nuxt 2 for that project (if I remember correctly). With more recent projects I've moved away from this approach as Nitro now has Firebase built in as platform and firebase deploy has been working fine.

Cheers

Dave