diff --git a/docs/content/development/endpoints/example-logged-in-user.md b/docs/content/development/endpoints/example-logged-in-user.md index 7faedb1c9a..a639188839 100644 --- a/docs/content/development/endpoints/example-logged-in-user.md +++ b/docs/content/development/endpoints/example-logged-in-user.md @@ -190,4 +190,4 @@ Then, run your backend with the following command: npm run start ``` -If you try accessing the endpoints you added the middleware to, you should see your implementation working as expected. \ No newline at end of file +If you try accessing the endpoints you added the middleware to, you should see your implementation working as expected. diff --git a/docs/content/development/scheduled-jobs/create.md b/docs/content/development/scheduled-jobs/create.md index 3f30c92584..eb19cff092 100644 --- a/docs/content/development/scheduled-jobs/create.md +++ b/docs/content/development/scheduled-jobs/create.md @@ -112,14 +112,18 @@ Cron Jobs only run while the Medusa backend is running. ::: -In your terminal run the following command to run your Medusa backend: +Before you run the Medusa backend, make sure to build your code that's under the `src` directory into the `dist` directory with the following command: + +```bash npm2yarn +npm run build +``` + +Then, run the following command to start your Medusa backend: ```bash npm2yarn npm run start ``` -This builds your code under the `src` directory into the `dist` directory, then runs the Medusa backend. - If the scheduled job was registered successfully, you should see a message similar to this logged on your Medusa backend: ```bash diff --git a/docs/content/modules/price-lists/backend/override-price-selection-strategy.md b/docs/content/modules/price-lists/backend/override-price-selection-strategy.md index cff333bad0..380b1e28ef 100644 --- a/docs/content/modules/price-lists/backend/override-price-selection-strategy.md +++ b/docs/content/modules/price-lists/backend/override-price-selection-strategy.md @@ -125,4 +125,4 @@ Run your backend to test it out: npm run start ``` -Then, try out your strategy using any of the [Products](/api/store/#tag/Product) or [Carts](/api/store/#tag/Cart) endpoints which include retrieving product variants and line items respectively. You should then see the prices in the response based on your implemented strategy. \ No newline at end of file +Then, try out your strategy using any of the [Products](/api/store/#tag/Product) or [Carts](/api/store/#tag/Cart) endpoints which include retrieving product variants and line items respectively. You should then see the prices in the response based on your implemented strategy.