``update Add Docker build and deployment workflow for CMS and Ionic Mobile, update docker-compose.yml with new service images, and enhance documentation with strategy diagram and endpoint table
``
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import PocketBase from 'pocketbase';
|
||||
|
||||
if (!process.env.NEXT_PUBLIC_POCKETBASE_URL) throw new Error('the pocketbase url cannot empty');
|
||||
if (process.env.NEXT_PUBLIC_POCKETBASE_URL) {
|
||||
console.log(process.env.NEXT_PUBLIC_POCKETBASE_URL);
|
||||
} else {
|
||||
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