VueFire with Nuxt SSR or prerender enabled on Firebase AppHosting crashes for missing service account #1635
Replies: 1 comment 1 reply
-
I also get the same issue on Nuxt 4.0.2, VueFire 3.2.2, deploying via github actions or via CLI As mentioned above, this appears to only affect SSR rendered pages, as retriggering a hydration renders the page correctly client side. I also believe this be related to the service account as it happened only after enabling auth. I've only just tried enabling auth so cannot say when this issue was introduced. Nothing in the Nuxt or Vuefire docs mentions having to setup anything firebase side for service account, so I haven't touched anything, assumed it would 'just work'. My builds are passing fine, it's only after going to the website does the error appear (that might be a Nuxt 3 vs. 4 difference). For me, I get a random 500 error when loading the page in the browser. Logs show a none descript nitro error which appears to be related to this issue but maybe in the next release I'll have more info. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Reproduction
None
Steps to reproduce the bug
Expected behavior
Deployment to AppHosting succeeds, and SSR/prerender pages load correctly
Actual behavior
Deploying the Nuxt app with prerender and SSR: true fails at build time on CloudBuild due to missing service account, and providing the service account json as one-lined Secret Manager secret fails too, because it tries to use the value of GOOGLE_APPLICATION_CREDENTIALS as path to the service account
Additional information
Everything works fine with non-SSR routes only.
Additional details in long forgotten discussion #1592
Beta Was this translation helpful? Give feedback.
All reactions