Skip to content

Nuxt Crashes During Prerendering with Vuefire Module #1550

You must be logged in to vote

For anyone encountering this issue, the solution can be found here:

When deploying a Nuxt app using VueFire and not using Firebase hosting, but rather deploying elsewhere (e.g., Vercel), note that the GOOGLE_APPLICATION_CREDENTIALS in your .env file cannot reference a path to a file. Instead, you need to pass the entire service-account.json object contents to GOOGLE_APPLICATION_CREDENTIALS.

This adjustment is necessary when using any type of SSR mode. In my case, I had to manually add the environment variables in Vercel.

After making this change, the errors were resolved. I hope this helps someone facing a similar issue.

Replies: 1 comment

You must be logged in to vote
0 replies
Answer selected by santiagoaloi
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #1549 on July 03, 2024 06:12.