I’m using graphql with my stack and one of the convienent development endpoints is
graphiql which points to the POST graphql endpoint for testing queries. However, I only want to use this endpoint during development, i.e.
sls offline start.
Is there a way to conditionally deploy API Gateway endpoints?
I read this post https://forum.serverless.com/t/conditional-serverless-yml-based-on-stage/1763 but I couldn’t found out how their solution works.