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 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("http://localhost");
19076
+ const isLocal = !url.startsWith("https://");
19077
19077
  let localConfig = null;
19078
19078
  if (isLocal) {
19079
19079
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bod-cli",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "bod": "./dist/cli.js"
@@ -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('http://localhost')
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 {}