fix(config): resolve remote hierarchy in memory for every profile
This commit is contained in:
@@ -1 +1 @@
|
||||
{"data":{"urlserver":["10.0.0.1:3088","wss://backup.example/ws"]}}
|
||||
{"player_server_tcp":["10.0.0.1:3088","wss://backup.example/ws"]}
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"data":{"urlserver":"10.0.0.1:3088"}}
|
||||
{"player_server_tcp":"10.0.0.1:3088"}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
import { BUILD_IDENTITY } from '../../YouleNexus/assets/framework/config/sources/defaults.ts';
|
||||
import { createRemoteConfig } from '../../YouleNexus/assets/framework/config/remote-config.ts';
|
||||
import type { ChannelIdentity } from '../../YouleNexus/assets/framework/config/identity.ts';
|
||||
|
||||
/** Test-only memory configuration shared by typed RuntimeConfig fixtures. */
|
||||
export function remoteFixture(identity: Readonly<ChannelIdentity> = BUILD_IDENTITY) {
|
||||
const remoteConfig = createRemoteConfig({ player_server_tcp: 'fixture.example:3088' }, identity);
|
||||
return { remoteConfig, rawConfig: remoteConfig.raw };
|
||||
}
|
||||
Reference in New Issue
Block a user