diff --git a/api/server/utils/staticCache.js b/api/server/utils/staticCache.js index 79b98dd173..65e7bbc58c 100644 --- a/api/server/utils/staticCache.js +++ b/api/server/utils/staticCache.js @@ -8,7 +8,7 @@ const maxAge = process.env.STATIC_CACHE_MAX_AGE || oneWeekInSeconds * 4; const staticCache = (staticPath) => express.static(staticPath, { setHeaders: (res) => { - if (process.env.NODE_ENV.toLowerCase() !== 'production') { + if (process.env.NODE_ENV?.toLowerCase() !== 'production') { return; }