Files
sign/apps/web/src/pages/api/trpc/[trpc].ts
David Nguyen 74b9bc786b fix: extend
2024-04-27 18:29:52 +07:00

18 lines
452 B
TypeScript

import * as trpcNext from '@documenso/trpc/server/adapters/next';
import { createTrpcContext } from '@documenso/trpc/server/context';
import { appRouter } from '@documenso/trpc/server/router';
export const config = {
maxDuration: 120,
api: {
bodyParser: {
sizeLimit: '50mb',
},
},
};
export default trpcNext.createNextApiHandler({
router: appRouter,
createContext: async ({ req, res }) => createTrpcContext({ req, res }),
});