Skip to content

Commit

Permalink
feat: make the proxy running on edge
Browse files Browse the repository at this point in the history
  • Loading branch information
invisal committed Jul 20, 2024
1 parent e8cf7c5 commit 992af63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/proxy/d1/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { HttpStatus } from "@/constants/http-status";
import { headers } from "next/headers";
import { NextRequest, NextResponse } from "next/server";

export const runtime = "edge";

export async function POST(req: NextRequest) {
// Get the account id and database id from header
const accountId = headers().get("x-account-id");
Expand Down

0 comments on commit 992af63

Please sign in to comment.