flatten app to repo root and update docker deployment for single-stack runtime

This commit is contained in:
2026-02-24 00:25:03 -05:00
parent 2987ac06fa
commit 168c05cb71
59 changed files with 64 additions and 12 deletions

13
lib/runtime-url.ts Normal file
View File

@@ -0,0 +1,13 @@
function trimTrailingSlash(value: string) {
return value.endsWith('/') ? value.slice(0, -1) : value;
}
export function resolveApiBaseURL(configuredBaseURL: string | undefined) {
const candidate = configuredBaseURL?.trim();
if (!candidate) {
return '';
}
return trimTrailingSlash(candidate);
}