Merged in fix/LOY-409-remove-promo-flag (pull request #2955)

fix(LOY-409): Remove promo campaign flag

* fix(LOY-409): Remove promo campaign flag


Approved-by: Chuma Mcphoy (We Ahead)
This commit is contained in:
Matilda Landström
2025-10-13 07:57:03 +00:00
parent 29f51e655e
commit 7bd75f01e4
3 changed files with 0 additions and 13 deletions

View File

@@ -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

View File

@@ -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 (
<div className={styles.page}>
<Suspense fallback={<PromoCampaignPageSkeleton />}>

View File

@@ -149,11 +149,6 @@ export const env = createEnv({
* We currently have the secret in local and test environments.
*/
DTMC_ENTRA_ID_SECRET: z.string().optional(),
PROMO_CAMPAIGN_PAGES_ENABLED: z
.string()
.refine((s) => s === "1" || s === "0")
.transform((s) => s === "1")
.default("0"),
HOTEL_BRANDING: z
.string()
.refine((s) => s === "1" || s === "0")
@@ -252,7 +247,6 @@ export const env = createEnv({
DTMC_ENTRA_ID_CLIENT: process.env.DTMC_ENTRA_ID_CLIENT,
DTMC_ENTRA_ID_ISSUER: process.env.DTMC_ENTRA_ID_ISSUER,
DTMC_ENTRA_ID_SECRET: process.env.DTMC_ENTRA_ID_SECRET,
PROMO_CAMPAIGN_PAGES_ENABLED: process.env.PROMO_CAMPAIGN_PAGES_ENABLED,
HOTEL_BRANDING: process.env.HOTEL_BRANDING,
WEBVIEW_SHOW_OVERVIEW: process.env.WEBVIEW_SHOW_OVERVIEW,
ENABLE_NEW_OVERVIEW_SECTION: process.env.ENABLE_NEW_OVERVIEW_SECTION,