fix: set redirect url correctly
All checks were successful
deploy to cloudflare pages / deploy (push) Successful in 33s
All checks were successful
deploy to cloudflare pages / deploy (push) Successful in 33s
This commit is contained in:
parent
79445dd9a3
commit
ee5ed04bcb
2 changed files with 3 additions and 1 deletions
|
@ -17,6 +17,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
DISCORD_CLIENT_ID: ${{ secrets.DISCORD_CLIENT_ID }}
|
DISCORD_CLIENT_ID: ${{ secrets.DISCORD_CLIENT_ID }}
|
||||||
DISCORD_CLIENT_SECRET: ${{ secrets.DISCORD_CLIENT_SECRET }}
|
DISCORD_CLIENT_SECRET: ${{ secrets.DISCORD_CLIENT_SECRET }}
|
||||||
|
PUBLIC_BASE_URL: https://tcl-guessr.pages.dev
|
||||||
run: |
|
run: |
|
||||||
bun install --frozen-lockfile
|
bun install --frozen-lockfile
|
||||||
bun run build
|
bun run build
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import { Discord } from "arctic";
|
import { Discord } from "arctic";
|
||||||
import { DISCORD_CLIENT_ID, DISCORD_CLIENT_SECRET } from "$env/static/private";
|
import { DISCORD_CLIENT_ID, DISCORD_CLIENT_SECRET } from "$env/static/private";
|
||||||
|
import { PUBLIC_BASE_URL } from "$env/static/public";
|
||||||
|
|
||||||
export interface DiscordUser {
|
export interface DiscordUser {
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -10,5 +11,5 @@ export interface DiscordUser {
|
||||||
export const discord = new Discord(
|
export const discord = new Discord(
|
||||||
DISCORD_CLIENT_ID,
|
DISCORD_CLIENT_ID,
|
||||||
DISCORD_CLIENT_SECRET,
|
DISCORD_CLIENT_SECRET,
|
||||||
"http://localhost:8788/login/callback",
|
`${PUBLIC_BASE_URL}/login/callback`,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue