This commit is contained in:
yohlo
2025-09-25 16:42:55 -05:00
parent b3ebf46afa
commit 92c4987372
8 changed files with 1615 additions and 17 deletions

View File

@@ -12,11 +12,6 @@ class PocketBaseAdminClient {
public authPromise: Promise<void>;
constructor() {
console.log('Environment variables loaded:', {
POCKETBASE_URL: process.env.POCKETBASE_URL,
POCKETBASE_ADMIN_EMAIL: process.env.POCKETBASE_ADMIN_EMAIL,
POCKETBASE_ADMIN_PASSWORD: process.env.POCKETBASE_ADMIN_PASSWORD,
});
this.pb = new PocketBase(process.env.POCKETBASE_URL);
this.pb.beforeSend = (url, options) => {

View File

@@ -14,6 +14,7 @@ const setupFetchInterceptor = () => {
if (typeof window === 'undefined') return;
const originalFetch = window.fetch;
//@ts-ignore
window.fetch = async (resource: RequestInfo | URL, options?: RequestInit) => {
const url = typeof resource === 'string' ? resource :
resource instanceof URL ? resource.toString() : resource.url;