bod-cli 0.5.2 → 0.5.4
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/cli.js +1 -1
- package/package.json +1 -1
- package/src/commands/deploy.ts +1 -1
package/dist/cli.js
CHANGED
|
@@ -19073,7 +19073,7 @@ var deploy_default = defineCommand2({
|
|
|
19073
19073
|
const { url, apiKey, name: instanceName, instance } = getResolvedInstance(loadConfig(), readInstanceFromYaml());
|
|
19074
19074
|
console.log(source_default.dim(`Using instance "${instanceName}"`));
|
|
19075
19075
|
const client = new BodClient(url, apiKey);
|
|
19076
|
-
const isLocal = url.startsWith("
|
|
19076
|
+
const isLocal = !url.startsWith("https://");
|
|
19077
19077
|
let localConfig = null;
|
|
19078
19078
|
if (isLocal) {
|
|
19079
19079
|
try {
|
package/package.json
CHANGED
package/src/commands/deploy.ts
CHANGED
|
@@ -138,7 +138,7 @@ export default defineCommand({
|
|
|
138
138
|
console.log(chalk.dim(`Using instance "${instanceName}"`))
|
|
139
139
|
const client = new BodClient(url, apiKey)
|
|
140
140
|
// Fetch local config for URL generation
|
|
141
|
-
const isLocal = url.startsWith('
|
|
141
|
+
const isLocal = !url.startsWith('https://')
|
|
142
142
|
let localConfig: { localDomain?: string; caddyPort?: number } | null = null
|
|
143
143
|
if (isLocal) {
|
|
144
144
|
try { localConfig = await client.get<any>('/config/public') } catch {}
|