docs: update portal for WRNexusJS 0.2.29

This commit is contained in:
2026-07-14 17:40:44 +05:30
parent 2eee737b06
commit 4e74744d85
77 changed files with 553 additions and 521 deletions
+11 -3
View File
@@ -1,4 +1,4 @@
# WRNexusJS documentation 0.2.28
# WRNexusJS documentation 0.2.29
Status: Private Developer Preview. This site documents 26 release-aligned packages.
@@ -281,7 +281,7 @@ wrnexus eject <component> # copy a Wire UI component's .wrn into app/compone
# Installed package documentation
The following README files and declarations come from the installed private 0.2.28 release.
The following README files and declarations come from the installed private 0.2.29 release.
## @wrnexus/ai
@@ -3682,6 +3682,7 @@ interface GatewayApp {
dir: string;
/** Host names routed to this app (e.g. ["localhost", "web.localhost"]). */
domains: string[];
publicOrigin?: string;
/** Optional fixed internal port; otherwise assigned from the gateway port. */
port?: number;
/** Access control enforced at the edge for this app. */
@@ -3707,6 +3708,7 @@ interface GatewayOptions {
port?: number;
hostname?: string;
mode?: "development" | "production";
environment?: string;
apps: GatewayApp[];
security?: GatewaySecurity;
}
@@ -4137,6 +4139,12 @@ For direct requests without gateway headers, URL helpers use `ctx.url`.
```ts
import { Context } from '@wrnexus/core';
declare function appOrigin(appName: string): string;
declare function appUrl(appName: string, path?: string): string;
declare function currentAppName(): string | undefined;
declare function currentAppOrigin(): string | undefined;
declare function workspaceAppOrigins(): Readonly<Record<string, string>>;
/**
* @wrnexus/helpers — safe conveniences for common WrNexus application flows.
*
@@ -4178,7 +4186,7 @@ declare function getOriginalRequestOrigin(ctx: RequestContext, options?: Origina
*/
declare function redirectToLogin(ctx: RequestContext, loginUrl: string | URL, options?: LoginRedirectOptions): Response;
export { type AllowedHosts, type LoginRedirectOptions, type OriginalRequestOptions, type RequestContext, getOriginalRequestMethod, getOriginalRequestOrigin, getOriginalRequestPath, getOriginalRequestUrl, redirectToLogin };
export { type AllowedHosts, type LoginRedirectOptions, type OriginalRequestOptions, type RequestContext, appOrigin, appUrl, currentAppName, currentAppOrigin, getOriginalRequestMethod, getOriginalRequestOrigin, getOriginalRequestPath, getOriginalRequestUrl, redirectToLogin, workspaceAppOrigins };
```
---