diff --git a/apps/scandic-web/.env.local.example b/apps/scandic-web/.env.local.example index b6811a9ab..590572138 100644 --- a/apps/scandic-web/.env.local.example +++ b/apps/scandic-web/.env.local.example @@ -71,5 +71,4 @@ DTMC_ENTRA_ID_CLIENT="" DTMC_ENTRA_ID_ISSUER="" DTMC_ENTRA_ID_SECRET="" -PROMO_CAMPAIGN_PAGES_ENABLED="0" # 0 - disabled, 1 - enabled HOTEL_BRANDING="0" # 0 - disabled, 1 - enabled diff --git a/apps/scandic-web/app/[lang]/(live)/(public)/(contentTypes)/promo_campaign_page/[uid]/page.tsx b/apps/scandic-web/app/[lang]/(live)/(public)/(contentTypes)/promo_campaign_page/[uid]/page.tsx index 8c78407b8..8137d9032 100644 --- a/apps/scandic-web/app/[lang]/(live)/(public)/(contentTypes)/promo_campaign_page/[uid]/page.tsx +++ b/apps/scandic-web/app/[lang]/(live)/(public)/(contentTypes)/promo_campaign_page/[uid]/page.tsx @@ -1,8 +1,5 @@ -import { notFound } from "next/navigation" import { Suspense } from "react" -import { env } from "@/env/server" - import PromoCampaignPage from "@/components/ContentType/PromoCampaignPage" import PromoCampaignPageSkeleton from "@/components/ContentType/PromoCampaignPage/PromoCampaignPageSkeleton" @@ -11,9 +8,6 @@ import styles from "./page.module.css" export { generateMetadata } from "@/utils/metadata/generateMetadata" export default async function PromoCampaignPagePage() { - if (!env.PROMO_CAMPAIGN_PAGES_ENABLED) { - return notFound() - } return (