mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
Use relative API URLs by default for external access
This commit is contained in:
1 parent
349c130311
commit
a4b6222577
1 file changed
+1
-1
@@ -30,7 +30,7 @@ export function createClientConfig(env: {
|
||||
: DEFAULTS.SERVER.PORT
|
||||
|
||||
return {
|
||||
API_BASE_URL: env.VITE_API_URL || `http://localhost:${serverPort}`,
|
||||
API_BASE_URL: env.VITE_API_URL || '',
|
||||
SERVER_PORT: serverPort,
|
||||
OPENCODE_PORT: env.VITE_OPENCODE_PORT
|
||||
? parseInt(env.VITE_OPENCODE_PORT, 10)
|
||||
|
||||
Reference in new issue
Block a user