primo-cli 0.1.9 → 0.1.10

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.
@@ -302,6 +302,14 @@ async function try_bootstrap_site(server, token, zip_buffer, config, site_id) {
302
302
  form.append('name', config.name);
303
303
  if (config?.group)
304
304
  form.append('group', config.group);
305
+ // Register the site against the deploy URL's host so the first visit to
306
+ // that domain finds a matching site instead of dropping into CreateSite.
307
+ try {
308
+ form.append('host', new URL(server).host);
309
+ }
310
+ catch {
311
+ // Malformed server URL — let the server fall back to its own default.
312
+ }
305
313
  form.append('file', new Blob([zip_buffer]), 'site.zip');
306
314
  const headers = {};
307
315
  if (token)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primo-cli",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "Local development CLI for Primo",
5
5
  "type": "module",
6
6
  "bin": {