From 022fb729f796cfcbf0dbc2b3a4f02674bf7c6f1a Mon Sep 17 00:00:00 2001 From: Linus Flood Date: Wed, 7 Jan 2026 10:54:04 +0000 Subject: [PATCH] Merged in feat/cleanup-env-variables (pull request #3394) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit feat(env.variables): cleanup unused * feat(env.variables): cleanup unused Approved-by: Joakim Jäderberg --- apps/scandic-web/.env.local.example | 1 - .../DynamicContent/SAS/TransferPoints/index.tsx | 6 ------ apps/scandic-web/env/server.ts | 11 +---------- 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/apps/scandic-web/.env.local.example b/apps/scandic-web/.env.local.example index 69e92563e..599f39ea1 100644 --- a/apps/scandic-web/.env.local.example +++ b/apps/scandic-web/.env.local.example @@ -40,7 +40,6 @@ GOOGLE_DYNAMIC_MAP_ID="" ENABLE_SURPRISES="true" -SAS_POINT_TRANSFER_ENABLED="true" SAS_API_ENDPOINT="" SAS_AUTH_ENDPOINT="" SAS_OCP_APIM="" diff --git a/apps/scandic-web/components/Blocks/DynamicContent/SAS/TransferPoints/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/SAS/TransferPoints/index.tsx index ae3ce9807..3d71ddc41 100644 --- a/apps/scandic-web/components/Blocks/DynamicContent/SAS/TransferPoints/index.tsx +++ b/apps/scandic-web/components/Blocks/DynamicContent/SAS/TransferPoints/index.tsx @@ -1,7 +1,5 @@ import { Suspense } from "react" -import { env } from "@/env/server" - import { Section } from "@/components/Section" import SectionHeader from "@/components/Section/Header/Deprecated" import SectionLink from "@/components/Section/Link" @@ -23,10 +21,6 @@ export default async function SASTransferPoints({ subtitle, link, }: Props) { - if (!env.SAS_POINT_TRANSFER_ENABLED) { - return null - } - const lang = await getLang() return ( diff --git a/apps/scandic-web/env/server.ts b/apps/scandic-web/env/server.ts index 3e3a5d19e..1cdf24594 100644 --- a/apps/scandic-web/env/server.ts +++ b/apps/scandic-web/env/server.ts @@ -11,7 +11,6 @@ export const env = createEnv({ */ isServer: typeof window === "undefined" || "Deno" in window, server: { - ADOBE_SCRIPT_SRC: z.string().optional(), ADOBE_SDK_SCRIPT_SRC: z.string().optional(), ENABLE_GTMSCRIPT: z .string() @@ -64,13 +63,7 @@ export const env = createEnv({ // TODO: remove defaults for SAS value when we know that netlify has 'room' for it SAS_AUTH_ENDPOINT: z.string().default(""), SAS_AUTH_CLIENTID: z.string().default(""), - SAS_POINT_TRANSFER_ENABLED: z - .string() - // only allow "true" or "false" - .refine((s) => s === "true" || s === "false") - // transform to boolean - .transform((s) => s === "true") - .default("false"), + REDIS_API_HOST: z.string().optional(), REDIS_API_KEY: z.string().optional(), BRANCH: @@ -121,7 +114,6 @@ export const env = createEnv({ }, emptyStringAsUndefined: true, runtimeEnv: { - ADOBE_SCRIPT_SRC: process.env.ADOBE_SCRIPT_SRC, ADOBE_SDK_SCRIPT_SRC: process.env.ADOBE_SDK_SCRIPT_SRC, ENABLE_GTMSCRIPT: process.env.ENABLE_GTMSCRIPT, BUILD_ID: process.env.BUILD_ID, @@ -158,7 +150,6 @@ export const env = createEnv({ SAS_AUTH_ENDPOINT: process.env.SAS_AUTH_ENDPOINT, SAS_AUTH_CLIENTID: process.env.SAS_AUTH_CLIENTID, - SAS_POINT_TRANSFER_ENABLED: process.env.SAS_POINT_TRANSFER_ENABLED, REDIS_API_HOST: process.env.REDIS_API_HOST, REDIS_API_KEY: process.env.REDIS_API_KEY,