i want to ask a question. I'm trying to use prisma...
# prisma-whats-new
e
i want to ask a question. I'm trying to use prisma with typescript, and what i'm trying to accomplish is - disable playground if my APP_ENV is production. The code is as follows:
Copy code
const options = {
      port: parseInt(process.env.APP_PORT),
      playground: process.env.APP_ENV !== 'production' ? '/production' : false
};
server.start(options); However, i get an error that type
string | boolean
is not assignable to type
string | false
. Is there any workaround here?