I am trying to disable the playground on my prisma...
# orm-help
r
I am trying to disable the playground on my prisma service as well as graphql-yoga server, but not having much luck. I am passing the following setting
playground: process.env.DISABLE_PLAYGROUND ? false : '/',
into
new GraphqlServer
and deploying to now.sh, but i can still access the playground via https://labs-prisma-fedgrhwoff.now.sh/
and passing in the ENV var in my
now.json
file as follows:
Copy code
"env": {
    "DISABLE_PLAYGROUND": "true"
  },
d
Where did you read about this way to disable playground? Is there a forum post or docs? 🙂
r
Defines the endpoint where you can invoke the Playground; setting to false disables the playground endpoint
oh waut
i think im passing it into the wrong place
my bad. need to be passed as server.start() options
👍 1