* feat: invalidate price selection caching on update * feat: add `onVariantsPricesUpdate` to PriceSelectionStrategy * fix: update units * fix: import * Create .changeset/tame-pillows-heal.md * fix: address feedback * refactor: make `onVariantsPricesUpdate` optional --------- Co-authored-by: fPolic <frane@medusajs.com> Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
25 lines
652 B
JavaScript
25 lines
652 B
JavaScript
const DB_HOST = process.env.DB_HOST
|
|
const DB_USERNAME = process.env.DB_USERNAME
|
|
const DB_PASSWORD = process.env.DB_PASSWORD
|
|
const DB_NAME = process.env.DB_TEMP_NAME
|
|
|
|
const redisUrl = process.env.REDIS_URL || "redis://localhost:6379"
|
|
const cacheTTL = process.env.CACHE_TTL || 15
|
|
|
|
module.exports = {
|
|
plugins: [],
|
|
projectConfig: {
|
|
redis_url: redisUrl,
|
|
database_url: `postgres://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOST}/${DB_NAME}`,
|
|
database_type: "postgres",
|
|
jwt_secret: "test",
|
|
cookie_secret: "test",
|
|
},
|
|
modules: {
|
|
cacheService: {
|
|
resolve: "@medusajs/cache-inmemory",
|
|
options: { ttl: cacheTTL },
|
|
},
|
|
},
|
|
}
|