@nurix/apollo 0.5.1 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/lib/apollo_client.js +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24,7 +24,7 @@ program
|
|
|
24
24
|
.description("Bootstrap NuStack services into your repo via the Apollo discovery plane.")
|
|
25
25
|
.version(version)
|
|
26
26
|
.option("--apollo-url <url>", "Apollo base URL (defaults to $APOLLO_URL, then the hosted instance)")
|
|
27
|
-
.option("--admin-url <url>", "Apollo
|
|
27
|
+
.option("--admin-url <url>", "Apollo base URL for app search (defaults to $APOLLO_ADMIN_URL, then the hosted Apollo instance)")
|
|
28
28
|
// Bare `apollo`: bootstrap — check sign-in, login if needed, then init.
|
|
29
29
|
.action(async () => runBootstrap(program.opts()));
|
|
30
30
|
program.addHelpText("after", "\nRun `apollo` with no command to bootstrap: it checks your sign-in, runs login if needed, then init.");
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
// packages/cli/src/lib/apollo_client.ts - HTTP client for the Apollo discovery
|
|
2
2
|
// plane: catalogue fetch + credential exchange + key validation.
|
|
3
3
|
const DEFAULT_APOLLO_URL = "https://apollo.nurix-ai.co";
|
|
4
|
-
|
|
4
|
+
// App search now lives on the merged Apollo worker (same origin as everything
|
|
5
|
+
// else); there is no separate admin host.
|
|
6
|
+
const DEFAULT_ADMIN_URL = "https://apollo.nurix-ai.co";
|
|
5
7
|
const REQUEST_TIMEOUT_MS = 10_000;
|
|
6
8
|
// Resolve the Apollo base URL: --apollo-url flag > APOLLO_URL env > hosted default.
|
|
7
9
|
export function resolveApolloUrl(options) {
|