Skip to content

Implement runtime configuration for API URL#1

Open
zyrakq wants to merge 1 commit into
marcin-kruszynski:masterfrom
zyrakq:master
Open

Implement runtime configuration for API URL#1
zyrakq wants to merge 1 commit into
marcin-kruszynski:masterfrom
zyrakq:master

Conversation

@zyrakq

@zyrakq zyrakq commented Dec 3, 2025

Copy link
Copy Markdown

Created /config endpoint returning API URL from environment Added ConfigProvider context managing configuration state Refactored API client using dynamic baseURL from config Updated layout wrapping application with ConfigProvider Removed static env section from next.config.js

Enable dynamic API URL without rebuilding Docker images Support reverse proxy deployment with origin detection Provide automatic fallback to current origin when ENV unset

Created /config endpoint returning API URL from environment
Added ConfigProvider context managing configuration state
Refactored API client using dynamic baseURL from config
Updated layout wrapping application with ConfigProvider
Removed static env section from next.config.js

Enable dynamic API URL without rebuilding Docker images
Support reverse proxy deployment with origin detection
Provide automatic fallback to current origin when ENV unset
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