docs: add locking module provider to deployment guide (#13361)

This commit is contained in:
Shahed Nasser
2025-09-01 10:09:55 +03:00
committed by GitHub
parent ca038ff583
commit c71ad3ff61
3 changed files with 41 additions and 5 deletions
@@ -131,8 +131,10 @@ Its highly recommended to instead use modules and providers suitable for prod
- [Redis Cache Module](!resources!/infrastructure-modules/cache/redis)
- [Redis Event Bus Module](!resources!/infrastructure-modules/event/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).
- [SendGrid Notification Module Provider](!resources!/infrastructure-modules/notification/sendgrid) (or other notification module providers production-ready).
- [Redis Locking Module Provider](!resources!/infrastructure-modules/locking/redis)
- [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`:
@@ -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,
},
},
],
},
},
],
})
```