feat: add env var to enable SSR
This commit is contained in:
1 parent
79342f2188
commit
5145e9e326
2 files changed
+4
-1
No files matched your search
@@ -51,6 +51,7 @@ The following environment variables can be set to override the default settings:
|
||||
| ------------------------------- | ------------------- | -------------------------------------- |
|
||||
| PUBLIC_INSTANCE_URL | URL | `lemmy.ml` |
|
||||
| PUBLIC_LOCK_TO_INSTANCE | `bool` | `true` if `PUBLIC_INSTANCE_URL` is set |
|
||||
| PUBLIC_SSR_ENABLED | `bool` | `false` |
|
||||
| PUBLIC_THEME | system\|dark\|light | system |
|
||||
| PUBLIC_EXPANDABLE_IMAGES | `bool` | true |
|
||||
| PUBLIC_MARK_READ_POSTS | `bool` | true |
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
export let ssr = false
|
||||
import { env } from '$env/dynamic/public'
|
||||
|
||||
export let ssr = (env.PUBLIC_SSR_ENABLED?.toLowerCase() ?? 'false') == 'true'
|
||||
Reference in new issue
Block a user