allow setting backend base url through vite for local dev

This commit is contained in:
burnettk 2025-02-11 09:17:45 -05:00
parent b5f1b3f2c4
commit 23b5a9236b
No known key found for this signature in database

View File

@ -31,6 +31,10 @@ if ('spiffworkflowFrontendJsenv' in window) {
}
}
if (import.meta.env.VITE_BACKEND_BASE_URL) {
backendBaseUrl = import.meta.env.VITE_BACKEND_BASE_URL;
}
if (!backendBaseUrl) {
let hostAndPortAndPathPrefix;
if (appRoutingStrategy === 'subdomain_based') {