From 320d84d191ab7f081caaab0f92cb10b332cf2acc Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Tue, 11 Feb 2025 13:26:48 +0200 Subject: [PATCH] docs: update default for medusa start (#11391) * docs: update default NODE_ENV * fix * fix --- .../app/learn/fundamentals/environment-variables/page.mdx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/www/apps/book/app/learn/fundamentals/environment-variables/page.mdx b/www/apps/book/app/learn/fundamentals/environment-variables/page.mdx index 5dc29d15cc..1db754410b 100644 --- a/www/apps/book/app/learn/fundamentals/environment-variables/page.mdx +++ b/www/apps/book/app/learn/fundamentals/environment-variables/page.mdx @@ -22,7 +22,13 @@ In production, you should always use system environment variables that you set t During development, it's easier to set environment variables in a `.env` file in your repository. -Based on your `NODE_ENV` system environment variable, which is considered as `development` if not set, Medusa will try to load environment variables from the following `.env` files: +Based on your `NODE_ENV` system environment variable, Medusa will try to load environment variables from the following `.env` files: + + + +As of [Medusa v2.5.0](https://github.com/medusajs/medusa/releases/tag/v2.5.0), `NODE_ENV` defaults to `production` when using `medusa start`. Otherwise, it defaults to `development`. + +