This commit is contained in:
makuro
2026-03-11 11:52:09 +08:00
commit 0b07db35a5
29 changed files with 1547 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import type { AppServer } from '@/index'
import { treaty } from '@elysiajs/eden'
const URL = process.env.BUN_PUBLIC_BASE_URL
if (!URL) {
throw new Error('BUN_PUBLIC_BASE_URL is not defined')
}
const apiFetch = treaty<AppServer>(URL)
export default apiFetch