update to use,
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
import PocketBase from 'pocketbase';
|
||||
|
||||
if (!process.env.NEXT_PUBLIC_POCKETBASE_URL) throw new Error('the pocketbase url cannot empty');
|
||||
export const POCKETBASE_URL: string = process.env.NEXT_PUBLIC_POCKETBASE_URL;
|
||||
|
||||
export const pb = new PocketBase(process.env.NEXT_PUBLIC_POCKETBASE_URL);
|
||||
|
Reference in New Issue
Block a user