- Aperant: Vite build, shims, deploy script, dist assets - Cockpit components: Card, Badge, Modal, Input, DataTable, StatusDot - EDA worker for browser-side PCB/schematic processing - Next.js project config, CI pipeline, layout Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
20 lines
413 B
TypeScript
20 lines
413 B
TypeScript
import { createYoga } from "graphql-yoga";
|
|
|
|
import { schema } from "@/lib/graphql/schema";
|
|
|
|
export const runtime = "nodejs";
|
|
|
|
const yoga = createYoga({
|
|
schema,
|
|
graphqlEndpoint: "/api/graphql",
|
|
fetchAPI: { Request, Response, Headers }
|
|
});
|
|
|
|
export async function GET(request: Request) {
|
|
return yoga.handle(request, {});
|
|
}
|
|
|
|
export async function POST(request: Request) {
|
|
return yoga.handle(request, {});
|
|
}
|