-
+ {!props.isAppDir ?
: null}
{props.showLogo &&
}
diff --git a/apps/web/middleware.ts b/apps/web/middleware.ts
index 94f36de3214a88..928b2ea86ff721 100644
--- a/apps/web/middleware.ts
+++ b/apps/web/middleware.ts
@@ -167,7 +167,7 @@ export const config = {
"/api/trpc/:path*",
"/login",
"/auth/login",
- "/future/auth/login",
+ "/auth/error",
/**
* Paths required by routingForms.handle
*/
diff --git a/apps/web/modules/auth/error/error-view.tsx b/apps/web/modules/auth/error/error-view.tsx
index 2d034a53a0d3d5..967bc20e41fab9 100644
--- a/apps/web/modules/auth/error/error-view.tsx
+++ b/apps/web/modules/auth/error/error-view.tsx
@@ -9,13 +9,11 @@ import { Button, Icon } from "@calcom/ui";
import AuthContainer from "@components/ui/AuthContainer";
-import type { PageProps } from "@server/lib/auth/error/getStaticProps";
-
const querySchema = z.object({
error: z.string().optional(),
});
-export default function Error(props: PageProps) {
+export default function Error() {
const { t } = useLocale();
const searchParams = useSearchParams();
const { error } = querySchema.parse({ error: searchParams?.get("error") || undefined });
diff --git a/apps/web/pages/auth/error.tsx b/apps/web/pages/auth/error.tsx
deleted file mode 100644
index 2995d07aafb97b..00000000000000
--- a/apps/web/pages/auth/error.tsx
+++ /dev/null
@@ -1,11 +0,0 @@
-import PageWrapper from "@components/PageWrapper";
-
-import type { PageProps } from "@server/lib/auth/error/getStaticProps";
-import { getStaticProps } from "@server/lib/auth/error/getStaticProps";
-
-import Error from "~/auth/error/error-view";
-
-const Page = (props: PageProps) => ;
-Page.PageWrapper = PageWrapper;
-export default Page;
-export { getStaticProps };
diff --git a/apps/web/scripts/vercel-app-router-deploy.sh b/apps/web/scripts/vercel-app-router-deploy.sh
index ec1256da7fac8a..b6e907e4f8707b 100755
--- a/apps/web/scripts/vercel-app-router-deploy.sh
+++ b/apps/web/scripts/vercel-app-router-deploy.sh
@@ -16,7 +16,6 @@ checkRoute "$APP_ROUTER_AUTH_LOGIN_ENABLED" app/future/auth/login
checkRoute "$APP_ROUTER_AUTH_LOGOUT_ENABLED" app/future/auth/logout
checkRoute "$APP_ROUTER_AUTH_NEW_ENABLED" app/future/auth/new
checkRoute "$APP_ROUTER_AUTH_SAML_ENABLED" app/future/auth/saml-idp
-checkRoute "$APP_ROUTER_AUTH_ERROR_ENABLED" app/future/auth/error
checkRoute "$APP_ROUTER_AUTH_PLATFORM_ENABLED" app/future/auth/platform
checkRoute "$APP_ROUTER_AUTH_OAUTH2_ENABLED" app/future/auth/oauth2
checkRoute "$APP_ROUTER_TEAM_ENABLED" app/future/team
diff --git a/apps/web/server/lib/auth/error/getStaticProps.ts b/apps/web/server/lib/auth/error/getStaticProps.ts
deleted file mode 100644
index cc917a12da0ef6..00000000000000
--- a/apps/web/server/lib/auth/error/getStaticProps.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import type { GetStaticPropsContext, InferGetStaticPropsType } from "next";
-
-import { getTranslations } from "@server/lib/getTranslations";
-
-export type PageProps = InferGetStaticPropsType;
-export const getStaticProps = async (context: GetStaticPropsContext) => {
- const i18n = await getTranslations(context);
-
- return {
- props: {
- i18n,
- },
- };
-};
diff --git a/turbo.json b/turbo.json
index 9799e734a74577..6cfdff17d47c60 100644
--- a/turbo.json
+++ b/turbo.json
@@ -248,7 +248,6 @@
"APP_ROUTER_AUTH_LOGOUT_ENABLED",
"APP_ROUTER_AUTH_NEW_ENABLED",
"APP_ROUTER_AUTH_SAML_ENABLED",
- "APP_ROUTER_AUTH_ERROR_ENABLED",
"APP_ROUTER_AUTH_PLATFORM_ENABLED",
"APP_ROUTER_AUTH_OAUTH2_ENABLED",
"APP_ROUTER_TEAM_ENABLED",