nixpacks
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import PocketBase from "pocketbase";
|
||||
const apiDomain = import.meta.env.VITE_API_DOMAIN;
|
||||
console.log(apiDomain);
|
||||
let pb: PocketBase;
|
||||
export const getPb = () => {
|
||||
if (pb) return pb;
|
||||
pb = new PocketBase("http://127.0.0.1:8090");
|
||||
pb = new PocketBase(apiDomain ? apiDomain : "http://127.0.0.1:8090");
|
||||
return pb;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user