Skip to content

Add environment-based API base URL configuration#2

Open
payday-sepia wants to merge 1 commit intomasterfrom
payday-sepia-patch-2
Open

Add environment-based API base URL configuration#2
payday-sepia wants to merge 1 commit intomasterfrom
payday-sepia-patch-2

Conversation

@payday-sepia
Copy link
Owner

Description

What was changed

Added support for configuring the API base URL via environment variables and a small helper to construct full API URLs.

Why it was changed

Hardcoding API URLs makes deployments harder across environments (local, staging, production). Using environment variables improves flexibility and safety.

How to test

  1. Set the API base URL in an environment variable.
  2. Run the app locally.
  3. Confirm API requests are sent to the configured base URL.

What changed? Why?

Notes to reviewers

How has it been tested?

Have you tested the following pages?

BaseWeb

  • [] base.org
  • [] base.org/names
  • [] base.org/builders
  • [] base.org/ecosystem
  • [] base.org/name/jesse
  • [] base.org/manage-names
  • [] base.org/resources

## Description
### What was changed
Added support for configuring the API base URL via environment variables and a small helper to construct full API URLs.

### Why it was changed
Hardcoding API URLs makes deployments harder across environments (local, staging, production). Using environment variables improves flexibility and safety.

### How to test
1. Set the API base URL in an environment variable.
2. Run the app locally.
3. Confirm API requests are sent to the configured base URL.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant