``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:
2025-05-24 08:21:33 +08:00
parent 1157bf0fda
commit cb8643b405
16 changed files with 462 additions and 85 deletions

View File

@@ -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);