Merge branch 'main' into production

This commit is contained in:
Agusti Fernandez Pardo
2022-06-15 00:28:38 +02:00
3 changed files with 11 additions and 4 deletions
+2
View File
@@ -11,6 +11,8 @@ declare module "next" {
userId: number;
method: string;
query: { [key: string]: string | string[] };
// eslint-disable-next-line @typescript-eslint/no-explicit-any
session: any;
}
}
+2 -1
View File
@@ -7,7 +7,8 @@
"author": "Cal.com Inc.",
"private": true,
"scripts": {
"build": "next build",
"app-store:generate": "yarn workspace @calcom/app-store-cli generate",
"build": "yarn app-store:generate && next build",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next",
"dev": "PORT=3002 next dev",
"lint-fix": "next lint --fix && prettier --write .",
+7 -3
View File
@@ -1,5 +1,9 @@
import { defaultHandler } from "@calcom/lib/server";
export default defaultHandler({
GET: import("./_get"),
});
import { withMiddleware } from "@lib/helpers/withMiddleware";
export default withMiddleware("HTTP_GET")(
defaultHandler({
GET: import("./_get"),
})
);