mirror of
https://github.com/Lissy93/web-check.git
synced 2025-05-18 21:20:45 +02:00
Update PLATFORM env var
This commit is contained in:
parent
1478fa738d
commit
22cf1244c7
@ -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';
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
|
||||
const isBossServer = import.meta.env.BOSS_SERVER === 'true';
|
||||
const isBossServer = import.meta.env.BOSS_SERVER === true;
|
||||
|
||||
---
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user