git: 원격 저장소 연결 및 초기 커밋

Made-with: Cursor
This commit is contained in:
2026-04-13 13:50:17 +09:00
commit 3286159154
38 changed files with 7830 additions and 0 deletions

19
src/lib/pocketBase.js Normal file
View File

@@ -0,0 +1,19 @@
import PocketBase from 'pocketbase'
import { toApiUrl } from '@/lib/apiUrl'
/** @type {PocketBase | null} */
let client = null
/**
* @returns {PocketBase}
*/
export function getPocketBase() {
const base = import.meta.env.VITE_POCKETBASE_URL
if (!base) {
throw new Error('VITE_POCKETBASE_URL이 설정되지 않았습니다.')
}
if (!client) {
client = new PocketBase(toApiUrl(base))
}
return client
}