feat: use / as playground

This commit is contained in:
Zhigang Fang
2023-03-04 12:32:23 +08:00
committed by GitHub
parent 496f299249
commit 1d3b8a2a9b

View File

@@ -4,11 +4,11 @@ const setCors = require('./utils/setCors')
const graphQLOptions = {
// Set the path for the GraphQL server
baseEndpoint: '/',
baseEndpoint: '/graphql',
// Set the path for the GraphQL playground
// This option can be removed to disable the playground route
playgroundEndpoint: '/___graphql',
playgroundEndpoint: '/',
// When a request's path isn't matched, forward it to the origin
forwardUnmatchedRequestsToOrigin: false,