23 lines
897 B
Markdown
23 lines
897 B
Markdown
## Why
|
|
|
|
The backend URL is currently hardcoded in the frontend application, which makes it inflexible for different environments. Configuring it via environment variables will allow for seamless switching between development, staging, and production endpoints without code changes.
|
|
|
|
## What Changes
|
|
|
|
- The frontend application will be modified to read the backend API URL from an environment variable.
|
|
- A sensible default will be provided for local development.
|
|
- The Docker setup will be updated to allow passing the environment variable during container startup.
|
|
|
|
## Capabilities
|
|
|
|
### New Capabilities
|
|
- `configurable-backend-url`: Enables the backend URL to be set dynamically via an environment variable.
|
|
|
|
### Modified Capabilities
|
|
- None
|
|
|
|
## Impact
|
|
|
|
- Frontend application code (where API calls are made).
|
|
- Frontend Dockerfile and docker-compose.yml to manage the new environment variable.
|