mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
refactor: rename configuration variables for clarity
Standardize naming across CLI and server components: - CLI: serverUrl → apiUrl, HAPI_SERVER_URL → HAPI_API_URL - Server: webapp* → listen*, miniAppUrl → publicUrl, WEBAPP_* → HAPI_LISTEN_*, WEBAPP_URL → HAPI_PUBLIC_URL - Rename serverUrlInit.ts → apiUrlInit.ts with updated logic for backward compatibility - Update all imports, function calls, and documentation accordingly
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
*
|
||||
* The integration test environment uses .env.integration-test which sets:
|
||||
* - HAPI_HOME=~/.hapi-dev-test (DIFFERENT from dev's ~/.hapi-dev!)
|
||||
* - HAPI_SERVER_URL=http://localhost:3006 (local hapi-server)
|
||||
* - HAPI_API_URL=http://localhost:3006 (local hapi-server)
|
||||
* - CLI_API_TOKEN=... (must match the server)
|
||||
*/
|
||||
|
||||
@@ -56,7 +56,7 @@ async function isServerHealthy(): Promise<boolean> {
|
||||
return false;
|
||||
}
|
||||
|
||||
const url = `${configuration.serverUrl}/cli/machines/__healthcheck__`;
|
||||
const url = `${configuration.apiUrl}/cli/machines/__healthcheck__`;
|
||||
const response = await fetch(url, {
|
||||
headers: { Authorization: `Bearer ${configuration.cliApiToken}` },
|
||||
signal: AbortSignal.timeout(1000)
|
||||
|
||||
Reference in New Issue
Block a user