Skip to content

Server error issue when deployed to Firebase App Hosting Backend #12585

Discussion options

You must be logged in to vote

I finally fixed the issue after more than 18 hours of debugging, I used Google Cloud Logging to check the logs in the console and I discovered the issues which is just I didn't set trustHost option to true in the next-auth config and when I did it just worked fine, in case anyone faced the same issue this is how I did it,

First I enabled Google Cloud Logging in the console and then I ran the following command locally, (Mac) while signed in to gcloud locally, to get a list of all the logs of my project, I ran it in the same directory as my project but I am not sure if it is going to work if ran outside of the directory:

gcloud logging logs list

and then I got a list of all the log names of…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by paulosabayomi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant