Remove unused pbServer.ts
This commit is contained in:
parent
e84dd414bd
commit
8f9a6969d2
1 changed files with 0 additions and 16 deletions
|
|
@ -1,16 +0,0 @@
|
|||
import PocketBase from 'pocketbase';
|
||||
|
||||
const PB_URL = import.meta.env.POCKETBASE_URL || 'http://127.0.0.1:8090';
|
||||
const PB_ADMIN_EMAIL = import.meta.env.PB_ADMIN_EMAIL || 'admin@example.com';
|
||||
const PB_ADMIN_PASSWORD = import.meta.env.PB_ADMIN_PASSWORD || 'admin_password';
|
||||
|
||||
const pbServer = new PocketBase(PB_URL);
|
||||
|
||||
export { pbServer };
|
||||
|
||||
export async function initPbServer() {
|
||||
if (!pbServer.authStore.isValid) {
|
||||
await pbServer.collection('_superusers').authWithPassword(PB_ADMIN_EMAIL, PB_ADMIN_PASSWORD);
|
||||
}
|
||||
return pbServer;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue