firebase cloud functions hosting for next.js with apollo graphql server

108 views
Skip to first unread message

Sergey Mühlinin

unread,
Apr 13, 2021, 5:41:18 AM4/13/21
to Firebase Google Group
I deploy next.js project implements apollo graphql server into cloud function whithin firebase.

On localhost it all works properly. I can open graphql playground on /api/graphql url and execute queries and retrieve responses.

But when deployed to firebase it stops working.

I can reach qraphql playground on https://test-course-d1335.web.app/api/graphql

but it displays message:

Server cannot be reached

and no query can be executed.

Cloud function returns "timeout" in firebase console logs.

code listings:

https://sealmu.gitbook.io/code-example-firebase-cloud-functions-next-js-apol/

Sergey Mühlinin

unread,
Apr 13, 2021, 7:45:55 AM4/13/21
to Firebase Google Group

Samuel Akabo

unread,
Apr 13, 2021, 10:03:32 AM4/13/21
to fireba...@googlegroups.com
Are you on the blaze plan?

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/f1ae0e2e-103b-42a2-a6ba-d4d910f6ab99n%40googlegroups.com.

Sergey Mühlinin

unread,
Apr 13, 2021, 12:13:52 PM4/13/21
to Firebase Google Group
yep, other functions work though, for ex. https://test-course-d1335.web.app/api/hello.  The issue is with apollo specifically. And it weird, cause playground is displayed but fails to connect and execute queries (like path is wrong)
Reply all
Reply to author
Forward
0 new messages