Skip to content

Commit bd78280

Browse files
nullcoderclaude
andcommitted
fix: remove edge runtime from gists API to resolve OpenNext build error
OpenNext requires edge runtime functions to be in separate files. Removing explicit edge runtime declaration allows the API to run in Node.js runtime while maintaining compatibility with Cloudflare. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent ae59f5c commit bd78280

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

app/api/gists/route.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ import { errorResponse, ApiErrors, validationError } from "@/lib/api-errors";
88
import type { CreateGistResponse } from "@/types/api";
99
import type { GistMetadata } from "@/types/models";
1010

11-
export const runtime = "edge";
12-
1311
// Validation schema for gist metadata
1412
const metadataSchema = z.object({
1513
expires_at: z.string().datetime().nullable().optional(),

0 commit comments

Comments
 (0)