mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 08:45:38 +02:00
chore: Migrate auth to CF Workers Pt 2
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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.DISCORD_CLIENT_ID,
|
||||
secret.DISCORD_CLIENT_SECRET,
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user