Skip to content

Commit

Permalink
layout edge runtime API #96
Browse files Browse the repository at this point in the history
  • Loading branch information
djobbo committed Oct 23, 2023
1 parent 5a09f17 commit 0e230e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/app/api/trpc/[trpc]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { fetchRequestHandler } from "@trpc/server/adapters/fetch"

import { appRouter } from "@/server"

export const runtime = "edge"

const handler = (req: Request) => {
return fetchRequestHandler({
endpoint: "/api/trpc",
Expand Down

0 comments on commit 0e230e1

Please sign in to comment.