feat: add native fnOS gateway socket and base path support
CI / verify (push) Canceled after 0s

This commit is contained in:
2026-10-02 14:59:57 +08:00
parent c5502b0f95
commit 419c205103
7 changed files with 69 additions and 9 deletions
+6
View File
@@ -0,0 +1,6 @@
export const APP_BASE = import.meta.env.BASE_URL.replace(/\/$/, '')
export function withBase(path: string): string {
if (!path.startsWith('/')) return path
return `${APP_BASE}${path}`
}