Cannot open Apollo Server (`graphql`) on a Deployed Strapi CMS - Stack Overflow

I am building a Strapi CMS with the GraphQL plugins. On my local development environment, I can access

I am building a Strapi CMS with the GraphQL plugins. On my local development environment, I can access the GraphQL frontend using localhost:1337/graphql. However, when I deploy it on render, the /graphql route always return the following.

Welcome to Apollo Server 
The full landing page cannot be loaded; it appears that you might be offline.

However, I can still access the GraphQL API by a POST request to /graphql (on Postman and on my own Frontend App). In other word, the GraphQL API is accessible, but I cannot enter the GraphQL Playground (the frontend part).

I am not sure why this is happening.
I expected to be able to access the /graphql route on my render deployment.

My deployed app is here .

How to Recreate The Error

- Just build a new strapi app with default contents
- Install the strapi GraphQL plugins
- Deploy it on []()
- You should find that the `/graphql` part on render deployment is not accessible, while on it is accessible on local development environment.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744736230a4590762.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信