VueFire with Nuxt SSR or prerender enabled on Firebase AppHosting crashes for missing service account
Closed this issue · 0 comments
Scino commented
Reproduction
None
Steps to reproduce the bug
- use VueFire in Nuxt 3 project
- enable SSR or prerender + SSR on one or more routes
- deploy to the new Firebase AppHosting
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