import Pocketbase from "pocketbase" const client = new Pocketbase("http://localhost:4321") client.autoCancellation(false) // Return a relative url for file instead of full path including localhost, which breaks external access client.files.getRelativeURL = (record: { [key: string]: any; }, filename: string, queryParams?: FileOptions | undefined) => { const res = client.files.getURL(record, filename) return res.substring(21) } export default client;