vuejs/vuefire

VueFire with Nuxt SSR or prerender enabled on Firebase AppHosting crashes for missing service account

Closed this issue · 0 comments

Reproduction

None

Steps to reproduce the bug

  1. use VueFire in Nuxt 3 project
  2. enable SSR or prerender + SSR on one or more routes
  3. 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