Skip to content

Commit

Permalink
fix: Get backend URL from environment variable if available (medusajs…
Browse files Browse the repository at this point in the history
  • Loading branch information
sradevski authored Oct 3, 2024
1 parent 1e046f2 commit a461e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/utils/src/common/define-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down

0 comments on commit a461e21

Please sign in to comment.