fix(utils): Enable Redis locking by default in Cloud (#12017)
* fix(utils): Enable redis locking by default * fix: tests * Create popular-rules-shake.md
This commit is contained in:
1 parent
9c90a39f1c
commit
79cfc1a69e
3 files changed
+26
-2
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/utils": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix(utils): Enable Redis locking by default in Cloud
|
||||||
@@ -1050,11 +1050,20 @@ describe("defineConfig", function () {
|
|||||||
"resolve": "@medusajs/medusa/inventory",
|
"resolve": "@medusajs/medusa/inventory",
|
||||||
},
|
},
|
||||||
"locking": {
|
"locking": {
|
||||||
|
"options": {
|
||||||
|
"providers": [
|
||||||
|
{
|
||||||
|
"id": "locking-redis",
|
||||||
|
"is_default": true,
|
||||||
"options": {
|
"options": {
|
||||||
"redisUrl": "redis://localhost:6379",
|
"redisUrl": "redis://localhost:6379",
|
||||||
},
|
},
|
||||||
"resolve": "@medusajs/medusa/locking-redis",
|
"resolve": "@medusajs/medusa/locking-redis",
|
||||||
},
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
"resolve": "@medusajs/medusa/locking",
|
||||||
|
},
|
||||||
"notification": {
|
"notification": {
|
||||||
"options": {
|
"options": {
|
||||||
"providers": [
|
"providers": [
|
||||||
|
|||||||
@@ -233,10 +233,20 @@ function resolveModules(
|
|||||||
options: { redisUrl: process.env.REDIS_URL },
|
options: { redisUrl: process.env.REDIS_URL },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
resolve: MODULE_PACKAGE_NAMES[Modules.LOCKING],
|
||||||
|
options: {
|
||||||
|
providers: [
|
||||||
|
{
|
||||||
|
id: "locking-redis",
|
||||||
resolve: TEMPORARY_REDIS_MODULE_PACKAGE_NAMES[Modules.LOCKING],
|
resolve: TEMPORARY_REDIS_MODULE_PACKAGE_NAMES[Modules.LOCKING],
|
||||||
options: { redisUrl: process.env.REDIS_URL },
|
is_default: true,
|
||||||
|
options: {
|
||||||
|
redisUrl: process.env.REDIS_URL,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
resolve: MODULE_PACKAGE_NAMES[Modules.FILE],
|
resolve: MODULE_PACKAGE_NAMES[Modules.FILE],
|
||||||
options: {
|
options: {
|
||||||
|
|||||||
Reference in new issue
Block a user