mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-19 08:54:12 +02:00
working on making things work with docker
This commit is contained in:
10
web/src/routes/+layout.server.ts
Normal file
10
web/src/routes/+layout.server.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import {env} from '$env/dynamic/public';
|
||||
|
||||
let ssrMode = false
|
||||
if (env.PUBLIC_WEB_SSR == undefined) {
|
||||
ssrMode = false;
|
||||
} else {
|
||||
ssrMode = env.PUBLIC_WEB_SSR.toLowerCase() == 'true';
|
||||
}
|
||||
console.log('SSR Mode:', ssrMode);
|
||||
export const ssr = ssrMode;
|
||||
@@ -1,3 +0,0 @@
|
||||
import {env} from '$env/dynamic/public';
|
||||
|
||||
export const ssr = (env.PUBLIC_WEB_SSR.toLowerCase() == 'true');
|
||||
Reference in New Issue
Block a user