docs: small improvements to the general deployment guide (#11978)

This commit is contained in:
Shahed Nasser
2025-03-25 19:25:53 +02:00
committed by GitHub
parent 178e034561
commit cbd1786ca5
4 changed files with 2194 additions and 1412 deletions
@@ -74,3 +74,10 @@ To check the current environment, Vite exposes two variables:
Learn more about other Vite environment variables in the [Vite documentation](https://vite.dev/guide/env-and-mode).
---
## Environment Variables in Production
When you build the Medusa application, including the Medusa Admin, with the `build` command, the environment variables are inlined into the build. This means that you can't change the environment variables without rebuilding the application.
For example, the `VITE_MY_API_KEY` environment variable in the example above will be replaced with the actual value during the build process.