Deployment scripts

This commit is contained in:
2026-04-29 23:53:51 +12:00
parent 5cb95266d8
commit 373f7c47c0
17 changed files with 1092 additions and 13 deletions
+7
View File
@@ -42,6 +42,13 @@ type AuthMode = 'none' | 'client' | 'admin' | 'manager';
type ApiFetch = typeof fetch;
function getApiBaseUrl() {
if (!browser) {
const internalBaseUrl = typeof process !== 'undefined' ? process.env.INTERNAL_API_BASE_URL?.trim() : '';
if (internalBaseUrl) {
return internalBaseUrl.replace(/\/+$/, '');
}
}
const configuredBaseUrl = env.PUBLIC_API_BASE_URL?.trim();
if (configuredBaseUrl) {
return configuredBaseUrl.replace(/\/+$/, '');