You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New command: `connect serve` reads the `expose:` block from pconnect.yml
and exposes multiple local services with one command. One config file,
one command, multiple tunnels — for webhooks, demos, and APIs.
- Extended pconnect.yml config format with `expose:` section
- New `connect serve` command (expose-side counterpart to `connect dev`)
- Updated YAML/JSON parser to handle expose block
- Docs: config-driven-expose-webhooks-demos.md
- Updated README, DETAILED.md with serve references
Co-authored-by: Cursor <cursoragent@cursor.com>
connect serve # Expose all services from pconnect.yml
219
220
connect dns <action># Local DNS (*.connect domains)
220
221
connect mcp <action># AI assistant integration
221
222
connect broker <action># Agent Permission Broker
@@ -396,6 +397,37 @@ connect dev --init # Create config
396
397
connect dev # Connect all services
397
398
```
398
399
400
+
### Config-driven Expose (`connect serve`)
401
+
402
+
Add an `expose` block to your `pconnect.yml` to expose multiple local services with one command:
403
+
404
+
```yaml
405
+
# pconnect.yml
406
+
services:
407
+
- name: staging-db
408
+
port: 5432
409
+
410
+
expose:
411
+
web:
412
+
target: localhost:3000
413
+
public: true
414
+
api:
415
+
target: localhost:8000
416
+
webhooks:
417
+
target: localhost:3000
418
+
public: true
419
+
```
420
+
421
+
Then:
422
+
423
+
```bash
424
+
connect serve # Expose all entries under expose:
425
+
```
426
+
427
+
Each entry becomes a named service in the hub. Set `public: true` to get a public URL (for webhooks and demos). Teammates can `connect reach web` or `connect reach api` to access your services.
428
+
429
+
See [docs/config-driven-expose-webhooks-demos.md](docs/config-driven-expose-webhooks-demos.md) for the full guide.
0 commit comments