Use relative API paths for Tailscale access
Replaced hardcoded http://localhost:8420/api with /api so the frontend works from any host (Tailscale, LAN, etc). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
3ef00bced1
commit
03961500e6
2 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
const BASE = 'http://localhost:8420/api'
|
||||
const BASE = '/api'
|
||||
|
||||
async function get<T>(path: string): Promise<T> {
|
||||
const res = await fetch(`${BASE}${path}`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue