Update PLATFORM env var

This commit is contained in:
Alicia Sykes 2024-05-07 12:47:37 +01:00
parent 1478fa738d
commit 22cf1244c7
2 changed files with 3 additions and 3 deletions

View File

@ -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';
}

View File

@ -1,6 +1,6 @@
---
const isBossServer = import.meta.env.BOSS_SERVER === 'true';
const isBossServer = import.meta.env.BOSS_SERVER === true;
---