feat: implement knowledge testing system with leaderboard, quiz generation, and PocketBase integration
This commit is contained in:
6
src/lib/pb.js
Normal file
6
src/lib/pb.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import PocketBase from 'pocketbase';
|
||||
|
||||
const pbUrl = import.meta.env.VITE_PB_URL ||
|
||||
(typeof window !== 'undefined' ? window.location.origin + '/pb' : 'http://localhost:8090');
|
||||
|
||||
export const pb = new PocketBase(pbUrl);
|
||||
Reference in New Issue
Block a user