diff options
| author | Elad Rosenheim <eladroz@users.noreply.github.com> | 2024-04-23 19:48:09 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-23 19:48:09 +0300 |
| commit | 6eb143cda881ba4dd26ab84bd85673f0fe94c1b8 (patch) | |
| tree | d946a3b4b567f0ee2590c9b45d3e2673db89626f /src/utils.ts | |
| parent | e028782c14356a5efaaa72b01cf34c30a4357df6 (diff) | |
Support disabling uploads + fonts fix (#11)
* Inline Netlify logo, preload fonts
* Support disabling blobs upload + fonts fix
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'; |
