From 3f1452954678569d695d07809dec875ff0edf73e Mon Sep 17 00:00:00 2001 From: Nicolas Vargas <111722885+MrUprizing@users.noreply.github.com> Date: Fri, 19 Sep 2025 20:23:52 -0500 Subject: [PATCH 1/2] Fix(examples): Rename aws-hono-steam (#6121) --- examples/{aws-hono-steam => aws-hono-stream}/.gitignore | 0 examples/{aws-hono-steam => aws-hono-stream}/index.ts | 0 examples/{aws-hono-steam => aws-hono-stream}/package.json | 0 examples/{aws-hono-steam => aws-hono-stream}/sst-env.d.ts | 0 examples/{aws-hono-steam => aws-hono-stream}/sst.config.ts | 0 examples/{aws-hono-steam => aws-hono-stream}/tsconfig.json | 0 6 files changed, 0 insertions(+), 0 deletions(-) rename examples/{aws-hono-steam => aws-hono-stream}/.gitignore (100%) rename examples/{aws-hono-steam => aws-hono-stream}/index.ts (100%) rename examples/{aws-hono-steam => aws-hono-stream}/package.json (100%) rename examples/{aws-hono-steam => aws-hono-stream}/sst-env.d.ts (100%) rename examples/{aws-hono-steam => aws-hono-stream}/sst.config.ts (100%) rename examples/{aws-hono-steam => aws-hono-stream}/tsconfig.json (100%) diff --git a/examples/aws-hono-steam/.gitignore b/examples/aws-hono-stream/.gitignore similarity index 100% rename from examples/aws-hono-steam/.gitignore rename to examples/aws-hono-stream/.gitignore diff --git a/examples/aws-hono-steam/index.ts b/examples/aws-hono-stream/index.ts similarity index 100% rename from examples/aws-hono-steam/index.ts rename to examples/aws-hono-stream/index.ts diff --git a/examples/aws-hono-steam/package.json b/examples/aws-hono-stream/package.json similarity index 100% rename from examples/aws-hono-steam/package.json rename to examples/aws-hono-stream/package.json diff --git a/examples/aws-hono-steam/sst-env.d.ts b/examples/aws-hono-stream/sst-env.d.ts similarity index 100% rename from examples/aws-hono-steam/sst-env.d.ts rename to examples/aws-hono-stream/sst-env.d.ts diff --git a/examples/aws-hono-steam/sst.config.ts b/examples/aws-hono-stream/sst.config.ts similarity index 100% rename from examples/aws-hono-steam/sst.config.ts rename to examples/aws-hono-stream/sst.config.ts diff --git a/examples/aws-hono-steam/tsconfig.json b/examples/aws-hono-stream/tsconfig.json similarity index 100% rename from examples/aws-hono-steam/tsconfig.json rename to examples/aws-hono-stream/tsconfig.json From 9ced491d45eb971842c67e2b87ba43df817bc241 Mon Sep 17 00:00:00 2001 From: Jack Blanc Date: Mon, 22 Sep 2025 21:53:45 -0400 Subject: [PATCH 2/2] Support shared Router in Auth and OpenControl components (#5791) * Support shared router in Auth and OpenControl components * Modify auth.url so it checks for the trailing slash before removing it --- platform/src/components/aws/auth.ts | 9 +++++++-- platform/src/components/aws/opencontrol.ts | 12 +++++------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/platform/src/components/aws/auth.ts b/platform/src/components/aws/auth.ts index a68b66aca1..de7782290e 100644 --- a/platform/src/components/aws/auth.ts +++ b/platform/src/components/aws/auth.ts @@ -293,6 +293,7 @@ export class Auth extends Component implements Link.Linkable { }, (args) => { args.url = { + ...(typeof args.url === "object" ? args.url : {}), cors: false, }; }, @@ -320,11 +321,15 @@ export class Auth extends Component implements Link.Linkable { /** * The URL of the Auth component. * - * If the `domain` is set, this is the URL with the custom domain. + * If the `domain` is set, this is the URL of the Router created for the custom domain. + * If the `issuer` function is linked to a custom domain, this is the URL of the issuer. * Otherwise, it's the auto-generated function URL for the issuer. */ public get url() { - return this._router?.url ?? this._issuer.url.apply((v) => v.slice(0, -1)); + return ( + this._router?.url ?? + this._issuer.url.apply((v) => (v.endsWith("/") ? v.slice(0, -1) : v)) + ); } /** diff --git a/platform/src/components/aws/opencontrol.ts b/platform/src/components/aws/opencontrol.ts index 368a6967bc..f3009f4cf2 100644 --- a/platform/src/components/aws/opencontrol.ts +++ b/platform/src/components/aws/opencontrol.ts @@ -65,7 +65,7 @@ export interface OpenControlArgs { * }); * ``` * - * #### Link your AI API keys + * #### Link your AI API keys * * ```ts title="sst.config.ts" {6} * const anthropicKey = new sst.Secret("AnthropicKey"); @@ -189,14 +189,12 @@ export class OpenControl extends Component { environment: { OPENCONTROL_KEY: key, }, - url: true, - _skipHint: true, - }, - (args) => { - args.url = { + url: { cors: false, - }; + }, + _skipHint: true, }, + undefined, { parent: self }, ).apply((v) => v.getFunction()); }