docs: added doc pages for v1.20.4 (#6828)

- Added new documentation page for Medusa Worker.
- Updated Railway deployment guide with details on Medusa Worker.
- Small adjustments to the `worker_mode` option's TSDocs.
This commit is contained in:
Shahed Nasser
2024-03-26 19:19:57 +00:00
committed by GitHub
parent 2524a9dfb0
commit 16860cc883
5 changed files with 158 additions and 21 deletions
+7 -4
View File
@@ -522,10 +522,13 @@ export type ProjectConfigOptions = {
jobs_batch_size?: number
/**
* Configure the application's worker mode. The default value is `shared`.
* - Use `shared` if you want to run the application in a single process.
* - Use `worker` if you want to run the a worker process only.
* - Use `server` if you want to run the application server only.
* Configure the application's worker mode. Default is `shared`.
*
* - Use `shared` to run the application in a single process.
* - Use `worker` to run the a worker process only.
* - Use `server` to run the application server only.
*
* Learn more in [this guide](https://docs.medusajs.com/development/medusa-worker).
*
* @example
* ```js title="medusa-config.js"