docs: add locking module provider to deployment guide (#13361)
This commit is contained in:
@@ -131,8 +131,10 @@ It’s highly recommended to instead use modules and providers suitable for prod
|
|||||||
- [Redis Cache Module](!resources!/infrastructure-modules/cache/redis)
|
- [Redis Cache Module](!resources!/infrastructure-modules/cache/redis)
|
||||||
- [Redis Event Bus Module](!resources!/infrastructure-modules/event/redis)
|
- [Redis Event Bus Module](!resources!/infrastructure-modules/event/redis)
|
||||||
- [Workflow Engine Redis Module](!resources!/infrastructure-modules/workflow-engine/redis)
|
- [Workflow Engine Redis Module](!resources!/infrastructure-modules/workflow-engine/redis)
|
||||||
- [S3 File Module Provider](!resources!/infrastructure-modules/file/s3) (or other file module providers production-ready).
|
- [Redis Locking Module Provider](!resources!/infrastructure-modules/locking/redis)
|
||||||
- [SendGrid Notification Module Provider](!resources!/infrastructure-modules/notification/sendgrid) (or other notification module providers production-ready).
|
- [PostHog Analytics Module Provider](!resources!/infrastructure-modules/analytics/posthog) (If you're using analytics in your application. You can also use other analytics module providers that are production-ready).
|
||||||
|
- [S3 File Module Provider](!resources!/infrastructure-modules/file/s3) (or other file module providers that are production-ready).
|
||||||
|
- [SendGrid Notification Module Provider](!resources!/infrastructure-modules/notification/sendgrid) (or other notification module providers that are production-ready).
|
||||||
|
|
||||||
Then, add these modules in `medusa-config.ts`:
|
Then, add these modules in `medusa-config.ts`:
|
||||||
|
|
||||||
@@ -162,6 +164,22 @@ module.exports = defineConfig({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
resolve: "@medusajs/medusa/locking",
|
||||||
|
options: {
|
||||||
|
providers: [
|
||||||
|
{
|
||||||
|
resolve: "@medusajs/medusa/locking-redis",
|
||||||
|
id: "locking-redis",
|
||||||
|
is_default: true,
|
||||||
|
options: {
|
||||||
|
redisUrl: process.env.LOCKING_REDIS_URL,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ export const generatedEditDates = {
|
|||||||
"app/learn/fundamentals/custom-cli-scripts/seed-data/page.mdx": "2024-12-09T14:38:06.385Z",
|
"app/learn/fundamentals/custom-cli-scripts/seed-data/page.mdx": "2024-12-09T14:38:06.385Z",
|
||||||
"app/learn/fundamentals/environment-variables/page.mdx": "2025-05-26T15:06:07.800Z",
|
"app/learn/fundamentals/environment-variables/page.mdx": "2025-05-26T15:06:07.800Z",
|
||||||
"app/learn/build/page.mdx": "2025-04-25T12:34:33.914Z",
|
"app/learn/build/page.mdx": "2025-04-25T12:34:33.914Z",
|
||||||
"app/learn/deployment/general/page.mdx": "2025-06-20T08:36:05.063Z",
|
"app/learn/deployment/general/page.mdx": "2025-09-01T06:21:43.760Z",
|
||||||
"app/learn/fundamentals/workflows/multiple-step-usage/page.mdx": "2025-08-01T14:59:59.501Z",
|
"app/learn/fundamentals/workflows/multiple-step-usage/page.mdx": "2025-08-01T14:59:59.501Z",
|
||||||
"app/learn/installation/page.mdx": "2025-07-23T14:28:50.404Z",
|
"app/learn/installation/page.mdx": "2025-07-23T14:28:50.404Z",
|
||||||
"app/learn/fundamentals/data-models/check-constraints/page.mdx": "2025-07-25T13:50:21.065Z",
|
"app/learn/fundamentals/data-models/check-constraints/page.mdx": "2025-07-25T13:50:21.065Z",
|
||||||
|
|||||||
@@ -5868,8 +5868,10 @@ It’s highly recommended to instead use modules and providers suitable for prod
|
|||||||
- [Redis Cache Module](https://docs.medusajs.com/resources/infrastructure-modules/cache/redis/index.html.md)
|
- [Redis Cache Module](https://docs.medusajs.com/resources/infrastructure-modules/cache/redis/index.html.md)
|
||||||
- [Redis Event Bus Module](https://docs.medusajs.com/resources/infrastructure-modules/event/redis/index.html.md)
|
- [Redis Event Bus Module](https://docs.medusajs.com/resources/infrastructure-modules/event/redis/index.html.md)
|
||||||
- [Workflow Engine Redis Module](https://docs.medusajs.com/resources/infrastructure-modules/workflow-engine/redis/index.html.md)
|
- [Workflow Engine Redis Module](https://docs.medusajs.com/resources/infrastructure-modules/workflow-engine/redis/index.html.md)
|
||||||
- [S3 File Module Provider](https://docs.medusajs.com/resources/infrastructure-modules/file/s3/index.html.md) (or other file module providers production-ready).
|
- [Redis Locking Module Provider](https://docs.medusajs.com/resources/infrastructure-modules/locking/redis/index.html.md)
|
||||||
- [SendGrid Notification Module Provider](https://docs.medusajs.com/resources/infrastructure-modules/notification/sendgrid/index.html.md) (or other notification module providers production-ready).
|
- [PostHog Analytics Module Provider](https://docs.medusajs.com/resources/infrastructure-modules/analytics/posthog/index.html.md) (If you're using analytics in your application. You can also use other analytics module providers that are production-ready).
|
||||||
|
- [S3 File Module Provider](https://docs.medusajs.com/resources/infrastructure-modules/file/s3/index.html.md) (or other file module providers that are production-ready).
|
||||||
|
- [SendGrid Notification Module Provider](https://docs.medusajs.com/resources/infrastructure-modules/notification/sendgrid/index.html.md) (or other notification module providers that are production-ready).
|
||||||
|
|
||||||
Then, add these modules in `medusa-config.ts`:
|
Then, add these modules in `medusa-config.ts`:
|
||||||
|
|
||||||
@@ -5899,6 +5901,22 @@ module.exports = defineConfig({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
resolve: "@medusajs/medusa/locking",
|
||||||
|
options: {
|
||||||
|
providers: [
|
||||||
|
{
|
||||||
|
resolve: "@medusajs/medusa/locking-redis",
|
||||||
|
id: "locking-redis",
|
||||||
|
is_default: true,
|
||||||
|
options: {
|
||||||
|
redisUrl: process.env.LOCKING_REDIS_URL,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user