import PocketBase from 'pocketbase';

const pbUrl = import.meta.env.VITE_PB_URL ||
  (typeof window !== 'undefined' ? window.location.origin : 'http://localhost:8090');

export const pb = new PocketBase(pbUrl);
