diff options
Diffstat (limited to 'src/utils.ts')
| -rw-r--r-- | src/utils.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils.ts b/src/utils.ts index 7a32b7d..59f3ce1 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -53,3 +53,5 @@ export function cacheHeaders(maxAgeDays = 365, cacheTags?: string[]): Record<str if (cacheTags?.length > 0) headers['Cache-Tag'] = cacheTags.join(','); return headers; } + +export const uploadDisabled = import.meta.env.PUBLIC_DISABLE_UPLOADS?.toLowerCase() === 'true'; |
