@flatkey-ai/cli 0.2.4 → 0.2.5
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/package.json +1 -1
- package/src/cli.js +2 -1
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { join } from "node:path";
|
|
2
|
+
import { DEFAULT_BASE_URL } from "./api.js";
|
|
2
3
|
|
|
3
4
|
const COMMANDS = new Set([
|
|
4
5
|
"audio",
|
|
@@ -502,7 +503,7 @@ async function handleGenerate(command, deps) {
|
|
|
502
503
|
const options = {
|
|
503
504
|
...command.options,
|
|
504
505
|
apiKey,
|
|
505
|
-
baseUrl: routerOrigin,
|
|
506
|
+
baseUrl: routerOrigin ?? DEFAULT_BASE_URL,
|
|
506
507
|
tempMediaBaseUrl: tempMediaBaseUrl ?? DEFAULT_CONSOLE_URL,
|
|
507
508
|
env: deps.env ?? process.env,
|
|
508
509
|
fetch: deps.fetch,
|