fix self-hosting

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-10-22 11:38:37 +02:00
parent 9790ba8937
commit 42d0fb8572
11 changed files with 202 additions and 38 deletions

View File

@@ -36,10 +36,7 @@ export async function bootCron() {
},
];
if (
(process.env.VITE_SELF_HOSTED === 'true' || process.env.SELF_HOSTED) &&
process.env.NODE_ENV === 'production'
) {
if (process.env.SELF_HOSTED && process.env.NODE_ENV === 'production') {
jobs.push({
name: 'ping',
type: 'ping',

View File

@@ -47,7 +47,7 @@ export async function deleteProjects(job: Job<CronQueuePayload>) {
for (const table of tables) {
const query =
process.env.VITE_SELF_HOSTED === 'true'
process.env.SELF_HOSTED === 'true'
? `ALTER TABLE ${table} DELETE WHERE ${where};`
: `ALTER TABLE ${table}_replicated ON CLUSTER '{cluster}' DELETE WHERE ${where};`;