fix: Fix cookie issue

This commit is contained in:
Wanjohi
2025-06-10 15:34:21 +03:00
parent 6eee40fcbe
commit 661d9d2e56
3 changed files with 16 additions and 1 deletions

View File

@@ -5,12 +5,21 @@ import { domain } from "./dns";
import { secret } from "./secret";
import { postgres } from "./postgres";
const urls = new sst.Linkable("Urls", {
properties: {
api: `https://api.${domain}`,
auth: `https://auth.${domain}`,
site: $dev ? "http://localhost:3000" : `https://console.${domain}`,
}
})
const apiFn = new sst.aws.Function("ApiFn", {
vpc,
handler: "packages/functions/src/api/index.handler",
streaming: !$dev,
link: [
bus,
urls,
auth,
postgres,
secret.SteamApiKey,