Skip to content

Commit

Permalink
fix: remove edge runtime from trpc
Browse files Browse the repository at this point in the history
  • Loading branch information
mgramigna committed Dec 16, 2023
1 parent 4ede234 commit d7b7a30
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions apps/nextjs/src/app/api/trpc/[trpc]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { fetchRequestHandler } from '@trpc/server/adapters/fetch';

import { appRouter, createTRPCContext } from '@canvas-challenge/api';

export const runtime = 'edge';

function setCorsHeaders(res: Response) {
res.headers.set('Access-Control-Allow-Origin', '*');
res.headers.set('Access-Control-Request-Method', '*');
Expand Down

0 comments on commit d7b7a30

Please sign in to comment.