Skip to content

Commit

Permalink
[ECO-2771] Add the ability to temporarily disable /cult with an env…
Browse files Browse the repository at this point in the history
…ironment variable (#555)
  • Loading branch information
xbtmatt authored Feb 5, 2025
1 parent a0f0e4a commit fc8675a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/typescript/frontend/src/app/cult/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { type Metadata } from "next";
import CultClientPage from "components/pages/cult/CultClientPage";
import LaunchingPage from "app/launching/page";
import { VERCEL_TARGET_ENV } from "@sdk/const";

export const dynamic = "force-static";

Expand All @@ -8,6 +10,11 @@ export const metadata: Metadata = {
description: `Explore the emojicoin cult`,
};

export default function LaunchEmojicoinPage() {
return <CultClientPage />;
export default function CultPage() {
// Temporarily disable the page in non-development/non-preview modes and show the Launching Soon page instead.
return VERCEL_TARGET_ENV === "development" || VERCEL_TARGET_ENV === "preview" ? (
<CultClientPage />
) : (
<LaunchingPage />
);
}

0 comments on commit fc8675a

Please sign in to comment.