fix(frontend): use relative URL for PocketBase in production
All checks were successful
Docker Build and Publish / build-and-push (push) Successful in 33s

This commit is contained in:
2026-01-11 19:54:00 -05:00
parent 58a98cb56d
commit a1d459493e

View File

@@ -1,3 +1,3 @@
import PocketBase from 'pocketbase';
export const pb = new PocketBase(import.meta.env.VITE_POCKETBASE_URL || 'http://127.0.0.1:8090');
export const pb = new PocketBase(import.meta.env.VITE_POCKETBASE_URL || (import.meta.env.DEV ? 'http://127.0.0.1:8090' : undefined));