How to disable certain endpoint in production environment?

I would like to disable Graphql Playground in production environment.

Hey @ram23, you can make the endpoint private by using the //encore:api private annotation.
Here are the docs for endpoint access controls: Developing Services and APIs — Encore Docs

Hope it helps, let me know if you have more questions!