Separate runtime profile identity from scenario

This commit is contained in:
Hide_D committed 2026-07-26 05:45:45 +00:00
1 parent 7679e8f5b7
commit bf08c5e658
5 files changed
+43 -1

No files matched your search

@@ -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',