From bc53716d8d66616e8c50f615b2ba9575082441cc Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Wed, 5 Feb 2025 17:11:43 +0200 Subject: [PATCH] docs: clarify steps for medusa build (#11324) --- www/apps/book/app/learn/build/page.mdx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/www/apps/book/app/learn/build/page.mdx b/www/apps/book/app/learn/build/page.mdx index 033a3df697..d6a01470dd 100644 --- a/www/apps/book/app/learn/build/page.mdx +++ b/www/apps/book/app/learn/build/page.mdx @@ -59,15 +59,10 @@ When `NODE_ENV=production`, the Medusa application loads the environment variabl -- In the system environment variables, set `NODE_ENV` to `production`: - -```bash -NODE_ENV=production -``` - -- Use the `start` command in the `.medusa/server` directory to run the application: +- Set `NODE_ENV` to `production` in the system environment variable, then start the Medusa application from `.medusa/server`: ```bash npm2yarn title=".medusa/server" +export NODE_ENV=production npm run start ```