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

This commit is contained in:
Shahed Nasser authored and GitHub committed 2025-03-25 19:25:53 +02:00
1 parent 178e034561
commit cbd1786ca5
4 files changed
+2194 -1412

No files matched your search

@@ -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.