feat: Basic white labeled version

This commit is contained in:
Andras Bacsai
2022-04-06 22:01:41 +02:00
parent f3cdda29bc
commit 3e8a8364dc
4 changed files with 17 additions and 6 deletions

View File

@@ -7,6 +7,8 @@ import { version } from '$lib/common';
import cookie from 'cookie';
import { dev } from '$app/env';
const whiteLabeled = process.env['COOLIFY_WHITE_LABELED'] === 'true';
export const handle = handleSession(
{
secret: process.env['COOLIFY_SECRET_KEY'],
@@ -71,6 +73,7 @@ export const handle = handleSession(
export const getSession: GetSession = function ({ locals }) {
return {
version,
whiteLabeled,
...locals.session.data
};
};