bd7ec581e3
Co-authored-by: shahdlala66 <shahd.lala66@gmail.com> Reviewed-on: #4 Co-authored-by: Shahd Lala <shosho996@blackhole.local> Co-committed-by: Shahd Lala <shosho996@blackhole.local>
12 lines
340 B
TypeScript
12 lines
340 B
TypeScript
/**
|
|
* Load runtime configuration from window.__RUNTIME_CONFIG__
|
|
* This is injected by docker-entrypoint.sh at container startup
|
|
*/
|
|
export function loadRuntimeConfig() {
|
|
const config = (window as any).__RUNTIME_CONFIG__ || {};
|
|
return {
|
|
apiUrl: config.API_URL || '',
|
|
wsUrl: config.WEBSOCKET_URL || 'ws://localhost:8080'
|
|
};
|
|
}
|