feat(internal): added internal api base url for internal calls (#3212)

* feat(internal): added internal api base url for internal calls

* make validation on http more lax
This commit is contained in:
Waleed
2026-02-12 23:56:35 -08:00
committed by GitHub
parent 022e84c4b1
commit a337aa7dfe
22 changed files with 95 additions and 48 deletions

View File

@@ -120,6 +120,18 @@
"format": "uri",
"description": "Public application URL"
},
"INTERNAL_API_BASE_URL": {
"type": "string",
"anyOf": [
{
"format": "uri"
},
{
"const": ""
}
],
"description": "Optional server-side internal base URL for internal /api self-calls (must include http:// or https://); defaults to NEXT_PUBLIC_APP_URL when unset"
},
"BETTER_AUTH_URL": {
"type": "string",
"format": "uri",

View File

@@ -70,6 +70,7 @@ app:
# Application URLs
NEXT_PUBLIC_APP_URL: "http://localhost:3000"
BETTER_AUTH_URL: "http://localhost:3000"
INTERNAL_API_BASE_URL: "" # Optional server-side internal base URL for /api self-calls (include http:// or https://); falls back to NEXT_PUBLIC_APP_URL when empty
# SOCKET_SERVER_URL: Auto-detected when realtime.enabled=true (uses internal service)
# Only set this if using an external WebSocket service with realtime.enabled=false
NEXT_PUBLIC_SOCKET_URL: "http://localhost:3002" # Public WebSocket URL for browsers