diff --git a/src/data/pocketbase.ts b/src/data/pocketbase.ts index bab8b9c..ef6d8de 100644 --- a/src/data/pocketbase.ts +++ b/src/data/pocketbase.ts @@ -7,17 +7,6 @@ import { Collection } from './schema' -const raw_client = new Pocketbase("http://localhost:4321") -raw_client.autoCancellation(false) - -// Return a relative url for file instead of full path including localhost, which breaks external access -raw_client.files.getRelativeURL = (record: { [key: string]: any; }, filename: string, queryParams?: FileOptions | undefined) => { - const res = raw_client.files.getURL(record, filename) - return res.substring(21) -} - -export { raw_client }; - class APIClient { client: Pocketbase