Correct mistakes with backend environment config

This commit is contained in:
William Oldham
2023-12-21 18:19:45 +00:00
committed by GitHub
parent 40aeea711c
commit 9739fbd17d

View File

@@ -21,14 +21,14 @@ This method uses nesting. So the key `server.basePath`. Will result in a json fi
## Method 2 - `.env` ## Method 2 - `.env`
This method is a flat method using double underscores as seperators and `MW_` as prefix. So the key `server.basePath`. Will result in the .env file like this: The environment variable names use double underscores as separators and `MW_` as the prefix. So the key `server.basePath` will result in the .env file like this:
```sh ```sh
MB_SERVER__BASE_PATH=/backend MW_SERVER__BASE_PATH=/backend
``` ```
## Method 3 - environment ## Method 3 - Environment
This method is identical to the `.env` method listed above, but instead of writing it in a file, you add it to the environment. This method is identical to the `.env` method listed above, but you add the variables to the environment instead of writing it in a file.
# Reference # Reference