mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 08:45:38 +02:00
19 lines
463 B
TypeScript
19 lines
463 B
TypeScript
import { domain } from "./stage";
|
|
import { secret } from "./secrets";
|
|
import { database } from "./database";
|
|
|
|
const authStorage = new sst.cloudflare.Kv("AuthStorage");
|
|
|
|
export const auth = new sst.cloudflare.Worker("Auth", {
|
|
handler: "cloud/packages/functions/src/auth/index.ts",
|
|
domain: `auth.${domain}`,
|
|
url: true,
|
|
link: [
|
|
database,
|
|
authStorage,
|
|
secret.POLAR_API_KEY,
|
|
secret.DISCORD_CLIENT_ID,
|
|
secret.DISCORD_CLIENT_SECRET,
|
|
],
|
|
});
|