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