summaryrefslogtreecommitdiff
path: root/src/utils.ts
diff options
context:
space:
mode:
authorElad Rosenheim <eladroz@users.noreply.github.com>2024-04-23 19:48:09 +0300
committerGitHub <noreply@github.com>2024-04-23 19:48:09 +0300
commit6eb143cda881ba4dd26ab84bd85673f0fe94c1b8 (patch)
treed946a3b4b567f0ee2590c9b45d3e2673db89626f /src/utils.ts
parente028782c14356a5efaaa72b01cf34c30a4357df6 (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.ts2
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';