fix: white-labeled custom logo

This commit is contained in:
Andras Bacsai
2022-04-19 18:23:04 +02:00
parent b0af54587b
commit 625e71ab08
4 changed files with 27 additions and 5 deletions

View File

@@ -8,6 +8,9 @@ import cookie from 'cookie';
import { dev } from '$app/env';
const whiteLabeled = process.env['COOLIFY_WHITE_LABELED'] === 'true';
const whiteLabelDetails = {
icon: (whiteLabeled && process.env['COOLIFY_WHITE_LABELED_ICON']) || null
};
export const handle = handleSession(
{
@@ -74,6 +77,7 @@ export const getSession: GetSession = function ({ locals }) {
return {
version,
whiteLabeled,
whiteLabelDetails,
...locals.session.data
};
};