mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
disable introspection when environment is set to production
This commit is contained in:
@@ -12,7 +12,8 @@ const typeDefs = readFileSync("./schema.graphqls", "utf8");
|
||||
async function main() {
|
||||
const server = new ApolloServer<ServerContext>({
|
||||
typeDefs,
|
||||
resolvers
|
||||
resolvers,
|
||||
introspection: process.env.NODE_ENV !== "production",
|
||||
});
|
||||
|
||||
const repository = new UnoptimizedInMemoryRepository();
|
||||
|
||||
Reference in New Issue
Block a user