Skip to content

Commit

Permalink
Tryfix #174
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoros committed Oct 24, 2023
1 parent e11ca87 commit 9b779e7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { appRouterEdge } from '~/server/api/trpc.router';
import { createTRPCEdgeContext } from '~/server/api/trpc.server';

export default async function handler(req: NextRequest) {
// NOTE: the `fetchRequestHandler` will find the path by subtracting the `endpoint` (base) from the request URL
// i.e.: this nextjs file can have any name, contrary to the nodejs pages router rile
return fetchRequestHandler({
endpoint: '/api/trpc-edge',
router: appRouterEdge,
Expand Down

1 comment on commit 9b779e7

@vercel
Copy link

@vercel vercel bot commented on 9b779e7 Oct 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

big-agi – ./

big-agi-enricoros.vercel.app
get.big-agi.com
big-agi-git-main-enricoros.vercel.app

Please sign in to comment.