mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-24 06:58:10 -05:00
15 lines
372 B
TypeScript
15 lines
372 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" }); |