fix: Get backend URL from environment variable if available (#9450)

This commit is contained in:
Stevche Radevski
2024-10-03 13:50:28 +02:00
committed by GitHub
parent 1e046f2b81
commit a461e21ae7

View File

@@ -41,7 +41,7 @@ export function defineConfig(config: Partial<ConfigModule> = {}): ConfigModule {
* with the user defined config
*/
const admin: ConfigModule["admin"] = {
backendUrl: DEFAULT_ADMIN_URL,
backendUrl: process.env.MEDUSA_BACKEND_URL || DEFAULT_ADMIN_URL,
...config.admin,
}