Separate runtime profile identity from scenario

This commit is contained in:
2026-07-26 05:45:45 +00:00
parent 7679e8f5b7
commit bf08c5e658
5 changed files with 43 additions and 1 deletions
@@ -300,6 +300,7 @@ export const buildProcessDefinitions = (
...baseEnv,
PROFILE: profile.profile,
SCENARIO: profile.scenario,
GAME_PROFILE_NAME: profile.profileName,
GAME_API_PORT: String(profile.apiPort),
GAME_TRPC_PATH: `/${profile.profile}/api/trpc`,
GAME_API_EVENTS_PATH: `/${profile.profile}/api/events`,
@@ -89,6 +89,7 @@ describe('buildProcessDefinitions', () => {
expect(definitions.api.cwd).toBe(path.join(buildWorkspace, 'app', 'game-api'));
expect(definitions.api.script).toBe(path.join(buildWorkspace, 'app', 'game-api', 'dist', 'index.js'));
expect(definitions.api.env).toMatchObject({
GAME_PROFILE_NAME: 'che:2',
GAME_TRPC_PATH: '/che/api/trpc',
GAME_API_EVENTS_PATH: '/che/api/events',
GAME_UPLOAD_PATH: '/che/api/uploads',