mirror of
https://github.com/xHyroM/roles-bot.git
synced 2024-11-25 01:31:05 +01:00
fix: env workaround
This commit is contained in:
parent
becba867ae
commit
d937b4e186
3 changed files with 10 additions and 3 deletions
|
@ -2,12 +2,18 @@ import Discord from "@auth/core/providers/discord";
|
|||
import { defineConfig } from "auth-astro";
|
||||
import type { User } from "~/env";
|
||||
|
||||
import dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
const { env } = process;
|
||||
|
||||
export default defineConfig({
|
||||
secret: import.meta.env.AUTH_SECRET,
|
||||
secret: env.AUTH_SECRET,
|
||||
providers: [
|
||||
Discord({
|
||||
clientId: import.meta.env.DISCORD_CLIENT_ID,
|
||||
clientSecret: import.meta.env.DISCORD_CLIENT_SECRET,
|
||||
clientId: env.DISCORD_CLIENT_ID,
|
||||
clientSecret: env.DISCORD_CLIENT_SECRET,
|
||||
authorization:
|
||||
"https://discord.com/api/oauth2/authorize?scope=guilds+identify+email",
|
||||
}),
|
||||
|
|
Binary file not shown.
|
@ -20,6 +20,7 @@
|
|||
"astro-google-fonts-optimizer": "^0.2.2",
|
||||
"astro-icon": "^0.8.0",
|
||||
"auth-astro": "^4.1.2",
|
||||
"dotenv": "^16.4.5",
|
||||
"preact": "^10.23.1",
|
||||
"tailwindcss": "^3.3.1"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue