fix: stabilize workspace gateway and scaffolding

This commit is contained in:
2026-07-13 12:54:07 +05:30
parent 6dfef7da3c
commit 88e907783a
63 changed files with 380 additions and 206 deletions
+5 -2
View File
@@ -147,7 +147,7 @@ Serves several apps behind one port and routes each request to the right app by
```ts
interface GatewayOptions {
port?: number; // default 3000
hostname?: string; // default "localhost"
hostname?: string; // dev: "127.0.0.1"; production: "0.0.0.0"
mode?: "development" | "production";
apps: GatewayApp[];
security?: GatewaySecurity;
@@ -176,7 +176,10 @@ interface GatewaySecurity {
}
```
The gateway exposes `/__gateway/health` (JSON list of routed apps) and returns a `RunningGateway` (`{ port, url, stop() }`).
Open the gateway URL (normally `http://127.0.0.1:3000`), not an app's internal
port. The gateway exposes `/__gateway/health` (JSON list of routed apps) and returns a
`RunningGateway` (`{ port, url, stop() }`). Use `--host=0.0.0.0` when other devices need
to reach a development gateway.
### `node:http` adapter (from `./adapters/node.ts`)
+13 -13
View File
@@ -1,6 +1,6 @@
{
"name": "@wrnexus/dev-server",
"version": "0.2.15",
"version": "0.2.16",
"type": "module",
"description": "@wrnexus/dev-server — part of the WrNexus framework.",
"license": "MIT",
@@ -25,18 +25,18 @@
}
},
"dependencies": {
"@wrnexus/core": "^0.2.15",
"@wrnexus/router": "^0.2.15",
"@wrnexus/ssr": "^0.2.15",
"@wrnexus/csr": "^0.2.15",
"@wrnexus/compiler": "^0.2.15",
"@wrnexus/styles": "^0.2.15",
"@wrnexus/ui": "^0.2.15",
"@wrnexus/validation": "^0.2.15",
"@wrnexus/i18n": "^0.2.15",
"@wrnexus/db": "^0.2.15",
"@wrnexus/pubsub": "^0.2.15",
"@wrnexus/uploader": "^0.2.15"
"@wrnexus/core": "^0.2.16",
"@wrnexus/router": "^0.2.16",
"@wrnexus/ssr": "^0.2.16",
"@wrnexus/csr": "^0.2.16",
"@wrnexus/compiler": "^0.2.16",
"@wrnexus/styles": "^0.2.16",
"@wrnexus/ui": "^0.2.16",
"@wrnexus/validation": "^0.2.16",
"@wrnexus/i18n": "^0.2.16",
"@wrnexus/db": "^0.2.16",
"@wrnexus/pubsub": "^0.2.16",
"@wrnexus/uploader": "^0.2.16"
},
"files": [
"dist"