feat(medusa,utils): add server level configurable http compression (#3785)
* feat(medusa,utils): add server level configurable http compression * chore: remove unwanted middleware * chore: add a log for running compression * chore: change package position * chore: reposition options * chore: change equality
This commit is contained in:
@@ -5,6 +5,7 @@ const DB_NAME = process.env.DB_TEMP_NAME
|
||||
|
||||
const redisUrl = process.env.REDIS_URL || "redis://localhost:6379"
|
||||
const cacheTTL = process.env.CACHE_TTL || 15
|
||||
const enableResponseCompression = process.env.ENABLE_RESPONSE_COMPRESSION || true
|
||||
|
||||
module.exports = {
|
||||
plugins: [],
|
||||
@@ -14,6 +15,9 @@ module.exports = {
|
||||
database_type: "postgres",
|
||||
jwt_secret: "test",
|
||||
cookie_secret: "test",
|
||||
http_compression: {
|
||||
enabled: enableResponseCompression
|
||||
}
|
||||
},
|
||||
modules: {
|
||||
cacheService: {
|
||||
|
||||
Reference in New Issue
Block a user