fix nixpacks

This commit is contained in:
yoan
2024-08-23 14:24:10 +08:00
parent 10bf69181f
commit 76c445a51c
5 changed files with 53 additions and 48 deletions

View File

@@ -4,6 +4,6 @@ console.log(apiDomain);
let pb: PocketBase;
export const getPb = () => {
if (pb) return pb;
pb = new PocketBase(apiDomain ? apiDomain : "http://127.0.0.1:8090");
pb = new PocketBase("/");
return pb;
};