diff --git a/services/users.ts b/services/users.ts index d4d4e30..ec6630f 100644 --- a/services/users.ts +++ b/services/users.ts @@ -1,3 +1,4 @@ +import 'server-only'; import type { NextApiRequest, NextApiResponse } from 'next'; import { NextResponse } from 'next/server'; import { exclude, parseQuery } from '@/utils/parsers'; diff --git a/types/server-only.d.ts b/types/server-only.d.ts new file mode 100644 index 0000000..02dc2d8 --- /dev/null +++ b/types/server-only.d.ts @@ -0,0 +1 @@ +declare module 'server-only';