mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
⚡ fix(staticCache): NODE_ENV check
This commit is contained in:
parent
14ddfec9b7
commit
45479d468e
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ const maxAge = process.env.STATIC_CACHE_MAX_AGE || oneWeekInSeconds * 4;
|
||||||
const staticCache = (staticPath) =>
|
const staticCache = (staticPath) =>
|
||||||
express.static(staticPath, {
|
express.static(staticPath, {
|
||||||
setHeaders: (res) => {
|
setHeaders: (res) => {
|
||||||
if (process.env.NODE_ENV.toLowerCase() !== 'production') {
|
if (process.env.NODE_ENV?.toLowerCase() !== 'production') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue