Skip to content

Commit

Permalink
fix prod error
Browse files Browse the repository at this point in the history
  • Loading branch information
timthedev07 committed Dec 29, 2023
1 parent 9e66597 commit dbd8a30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/app/api/trpc/[trpc]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ const handler = (req: Request) =>
createContext: () => ({}),
});

export { handler as GET, handler as POST };
export { handler as GET, handler as OPTIONS, handler as POST };
2 changes: 1 addition & 1 deletion app/src/trpc/Provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const TRPCProvider = ({ children }: { children: React.ReactNode }) => {
);

const url = process.env.NEXT_PUBLIC_VERCEL_URL
? `https://${process.env.NEXT_PUBLIC_VERCEL_URL}`
? `https://${process.env.NEXT_PUBLIC_VERCEL_URL}/api/trpc/`
: "http://localhost:3000/api/trpc/";

const [trpcClient] = useState(() =>
Expand Down

0 comments on commit dbd8a30

Please sign in to comment.