feat: ssr comments if env var is enabled

This commit is contained in:
Xyphyn committed 2023-08-27 11:58:28 -07:00
1 parent c030196c35
commit 2c4132d899
2 files changed
+19 -12

No files matched your search

+2
View File
@@ -5,6 +5,8 @@ import { env } from '$env/dynamic/public'
console.log('Using the following default settings from the environment:')
console.log(env)
export const SSR_ENABLED = env.PUBLIC_SSR_ENABLED.toLowerCase() == 'true'
// Returns a proper boolean or null. Used to set boolean values from env var strings while allowing nullish coalescing to set default values.
const toBool = (str: string | undefined) => {
if (!str) {