Scheduling infrastructure for absolutely everyone.
chore: app router - /getting-started page (#18185)
Benny Joof78fca594a2c
diff --git a/.env.example b/.env.exampleindex 9c0724dd081..931ed06679c 100644--- a/.env.example+++ b/.env.example@@ -363,7 +363,6 @@ APP_ROUTER_APPS_CATEGORIES_ENABLED=0APP_ROUTER_APPS_CATEGORIES_CATEGORY_ENABLED=0APP_ROUTER_BOOKING_ENABLED=0APP_ROUTER_BOOKINGS_STATUS_ENABLED=0-APP_ROUTER_GETTING_STARTED_STEP_ENABLED=0APP_ROUTER_APPS_ENABLED=0APP_ROUTER_TEAM_ENABLED=0APP_ROUTER_TEAMS_ENABLED=0diff --git a/apps/web/abTest/middlewareFactory.ts b/apps/web/abTest/middlewareFactory.tsindex e3555464bee..4428b29d5b5 100644--- a/apps/web/abTest/middlewareFactory.ts+++ b/apps/web/abTest/middlewareFactory.ts@@ -20,7 +20,6 @@ const ROUTES: [URLPattern, boolean][] = [["/auth/error", process.env.APP_ROUTER_AUTH_ERROR_ENABLED === "1"] as const,["/auth/platform/:path*", process.env.APP_ROUTER_AUTH_PLATFORM_ENABLED === "1"] as const,["/auth/oauth2/:path*", process.env.APP_ROUTER_AUTH_OAUTH2_ENABLED === "1"] as const,- ["/getting-started/:step", process.env.APP_ROUTER_GETTING_STARTED_STEP_ENABLED === "1"] as const,["/bookings/:status", process.env.APP_ROUTER_BOOKINGS_STATUS_ENABLED === "1"] as const,["/booking/:path*", process.env.APP_ROUTER_BOOKING_ENABLED === "1"] as const,["/team", process.env.APP_ROUTER_TEAM_ENABLED === "1"] as const,diff --git a/apps/web/app/future/getting-started/[[...step]]/page.tsx b/apps/web/app/getting-started/[[...step]]/page.tsxsimilarity index 100%rename from apps/web/app/future/getting-started/[[...step]]/page.tsxrename to apps/web/app/getting-started/[[...step]]/page.tsxdiff --git a/apps/web/middleware.ts b/apps/web/middleware.tsindex 1290b8bd176..5833afdbe7a 100644--- a/apps/web/middleware.ts+++ b/apps/web/middleware.ts@@ -184,8 +184,7 @@ export const config = {"/apps/categories/:category/","/future/apps/categories/:category/","/workflows/:path*",- "/getting-started/:step/",- "/future/getting-started/:step/",+ "/getting-started/:path*","/apps","/bookings/:status/","/future/bookings/:status/",diff --git a/apps/web/modules/getting-started/[[...step]]/onboarding-view.tsx b/apps/web/modules/getting-started/[[...step]]/onboarding-view.tsxindex 6bf55279c10..17fd6d9a8bb 100644--- a/apps/web/modules/getting-started/[[...step]]/onboarding-view.tsx+++ b/apps/web/modules/getting-started/[[...step]]/onboarding-view.tsx@@ -2,7 +2,6 @@import { signOut } from "next-auth/react";import type { TFunction } from "next-i18next";-import Head from "next/head";import { usePathname, useRouter } from "next/navigation";import { Suspense } from "react";import { Toaster } from "react-hot-toast";@@ -147,11 +146,6 @@ const OnboardingPage = (props: PageProps) => {)}data-testid="onboarding"key={pathname}>- <Head>- <title>{`${APP_NAME} - ${t("getting_started")}`}</title>- <link rel="icon" href="/favicon.ico" />- </Head>-<div className="mx-auto py-6 sm:px-4 md:py-24"><div className="relative"><div className="sm:mx-auto sm:w-full sm:max-w-[600px]">diff --git a/apps/web/pages/getting-started/[[...step]].tsx b/apps/web/pages/getting-started/[[...step]].tsxdeleted file mode 100644index 37a605a3746..00000000000--- a/apps/web/pages/getting-started/[[...step]].tsx+++ /dev/null@@ -1,10 +0,0 @@-import PageWrapper from "@components/PageWrapper";--import type { PageProps } from "~/getting-started/[[...step]]/onboarding-view";-import OnboardingPage from "~/getting-started/[[...step]]/onboarding-view";--const Page = (props: PageProps) => <OnboardingPage {...props} />;--export { getServerSideProps } from "@lib/getting-started/[[...step]]/getServerSideProps";-Page.PageWrapper = PageWrapper;-export default Page;diff --git a/apps/web/scripts/vercel-app-router-deploy.sh b/apps/web/scripts/vercel-app-router-deploy.shindex 591c0b3c3c4..1e4fcb745be 100755--- a/apps/web/scripts/vercel-app-router-deploy.sh+++ b/apps/web/scripts/vercel-app-router-deploy.sh@@ -20,7 +20,6 @@ checkRoute "$APP_ROUTER_AUTH_SAML_ENABLED" app/future/auth/saml-idpcheckRoute "$APP_ROUTER_AUTH_ERROR_ENABLED" app/future/auth/errorcheckRoute "$APP_ROUTER_AUTH_PLATFORM_ENABLED" app/future/auth/platformcheckRoute "$APP_ROUTER_AUTH_OAUTH2_ENABLED" app/future/auth/oauth2-checkRoute "$APP_ROUTER_GETTING_STARTED_STEP_ENABLED" app/future/getting-startedcheckRoute "$APP_ROUTER_BOOKINGS_STATUS_ENABLED" app/future/bookingscheckRoute "$APP_ROUTER_BOOKING_ENABLED" app/future/bookingcheckRoute "$APP_ROUTER_TEAM_ENABLED" app/future/teamdiff --git a/turbo.json b/turbo.jsonindex 8a61f7725d9..f288885af3c 100644--- a/turbo.json+++ b/turbo.json@@ -243,7 +243,6 @@"APP_ROUTER_BOOKING_ENABLED","APP_ROUTER_BOOKINGS_STATUS_ENABLED","APP_ROUTER_EVENT_TYPES_ENABLED",- "APP_ROUTER_GETTING_STARTED_STEP_ENABLED","APP_ROUTER_AUTH_FORGOT_PASSWORD_ENABLED","APP_ROUTER_AUTH_LOGIN_ENABLED","APP_ROUTER_AUTH_LOGOUT_ENABLED",