From 22cf1244c7734ce25f34c5a3b91eb956b161efbb Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Tue, 7 May 2024 12:47:37 +0100 Subject: [PATCH] Update PLATFORM env var --- astro.config.mjs | 4 ++-- src/pages/index.astro | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index b3bf619..92d350f 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -20,7 +20,7 @@ const unwrapEnvVar = (varName, fallbackValue) => { } // Determine the deploy target (vercel, netlify, cloudflare, node) -const deployTarget = unwrapEnvVar('DEPLOY_TARGET', 'node'); +const deployTarget = unwrapEnvVar('PLATFORM', 'node'); // Determine the output mode (server, hybrid or static) const output = unwrapEnvVar('OUTPUT', 'hybrid'); @@ -68,7 +68,7 @@ console.log( const redirects = {}; // Skip the marketing homepage for self-hosted users -if (isBossServer && isBossServer === 'true') { +if (!isBossServer || isBossServer !== true) { redirects['/'] = '/check'; } diff --git a/src/pages/index.astro b/src/pages/index.astro index 23f996b..ca029d4 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,6 +1,6 @@ --- -const isBossServer = import.meta.env.BOSS_SERVER === 'true'; +const isBossServer = import.meta.env.BOSS_SERVER === true; ---