@sanity/cli 4.15.0 → 4.15.1-next.2

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.
@@ -8112,6 +8112,9 @@ Examples
8112
8112
  # Start dev server on default port
8113
8113
  sanity functions dev
8114
8114
 
8115
+ # Start dev server on specific host
8116
+ sanity functions dev --host 0.0.0.0
8117
+
8115
8118
  # Start dev server on specific port
8116
8119
  sanity functions dev --port 3333
8117
8120
 
@@ -8119,12 +8122,13 @@ Examples
8119
8122
  sanity functions dev --open
8120
8123
  `, defaultFlags$3 = {
8121
8124
  open: !1,
8125
+ host: "localhost",
8122
8126
  port: 8080
8123
8127
  }, devFunctionsCommand = {
8124
8128
  name: "dev",
8125
8129
  group: "functions",
8126
8130
  helpText: helpText$f,
8127
- signature: "[--port <port> --open]",
8131
+ signature: "[--host <host> --port <port> --open]",
8128
8132
  description: "Start the Sanity Function emulator",
8129
8133
  async action(args, context) {
8130
8134
  const { apiClient, output } = context, flags = { ...defaultFlags$3, ...args.extOptions }, { open: shouldOpen } = flags, client2 = apiClient({ requireUser: !0, requireProject: !1 }), { token: token2 } = client2.config();
@@ -8138,11 +8142,12 @@ Examples
8138
8142
  const { success, error: error2 } = await functionDevCore({
8139
8143
  ...cmdConfig.value,
8140
8144
  flags: {
8145
+ host: flags.host,
8141
8146
  port: flags.port
8142
8147
  }
8143
8148
  });
8144
8149
  if (!success) throw new Error(error2);
8145
- shouldOpen && await open(`http://localhost:${flags.port}`);
8150
+ shouldOpen && await open(`http://${flags.host}:${flags.port}`);
8146
8151
  }
8147
8152
  }, helpText$e = `
8148
8153
  Commands