test(e2e): honor configured game base paths
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
const normalizedBasePath = (process.env.PLAYWRIGHT_GAME_BASE_PATH ?? 'che').replace(/^\/+|\/+$/g, '');
|
||||
|
||||
export const gameBasePath = `/${normalizedBasePath}`;
|
||||
export const gameProfile = process.env.PLAYWRIGHT_GAME_PROFILE ?? 'che:default';
|
||||
export const gameTrpcRoute = `**${gameBasePath}/api/trpc/**`;
|
||||
export const gamePath = (suffix = ''): string => `${gameBasePath}${suffix.startsWith('/') ? suffix : `/${suffix}`}`;
|
||||
Reference in New Issue
Block a user