mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-10 04:40:46 -05:00
16 lines
373 B
TypeScript
16 lines
373 B
TypeScript
import { ApolloServer } from "apollo-server-micro";
|
|
import { createContext } from "graphql/context";
|
|
import { schema } from "graphql/schema";
|
|
|
|
export const config = {
|
|
api: {
|
|
bodyParser: false,
|
|
},
|
|
};
|
|
|
|
export default new ApolloServer({
|
|
schema,
|
|
context: createContext,
|
|
tracing: process.env.NODE_ENV === "development",
|
|
}).createHandler({ path: "/api/graphql" });
|