diff options
feat: an RSS
Diffstat (limited to 'src/lib/index.ts')
| -rw-r--r-- | src/lib/index.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/index.ts b/src/lib/index.ts index c83493b..46be9a2 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -1,3 +1,6 @@ +import { dev } from '$app/environment'; +import { env } from '$env/dynamic/public'; + /* Copyright (C) 2024-2026 memdmp @@ -10,3 +13,4 @@ export * as styles from "./styles.ts"; export const forceTrailingSlash = (v: string) => v.endsWith('/') ? v : `${v}/`; +export const RSS_ROOT = env.PUBLIC_RSS_ROOT ?? (dev ? 'http://localhost:5173/~mem/blog/' : 'https://estrogen.zone/~mem/blog/') |