From 6eb143cda881ba4dd26ab84bd85673f0fe94c1b8 Mon Sep 17 00:00:00 2001 From: Elad Rosenheim Date: Tue, 23 Apr 2024 19:48:09 +0300 Subject: Support disabling uploads + fonts fix (#11) * Inline Netlify logo, preload fonts * Support disabling blobs upload + fonts fix --- src/utils.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/utils.ts') 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 0) headers['Cache-Tag'] = cacheTags.join(','); return headers; } + +export const uploadDisabled = import.meta.env.PUBLIC_DISABLE_UPLOADS?.toLowerCase() === 'true'; -- cgit v1.2.3