Update base URL to use custom domain for the bot
Change the base URL in webServer.js from the Replit deployment URL to use the configured `BASE_URL` environment variable, defaulting to `https://bot.aethex.dev`. Replit-Commit-Author: Agent Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: d7464c02-f803-4f2c-b6ad-c5f0ef687903 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/h41eDR1 Replit-Helium-Checkpoint-Created: true
This commit is contained in:
parent
c8cce7f93a
commit
3030379072
2 changed files with 3 additions and 3 deletions
2
.replit
2
.replit
|
|
@ -60,6 +60,6 @@ CORP_GUILD_ID = "373713073594302464"
|
|||
FOUNDATION_GUILD_ID = "1338564560277344287"
|
||||
WHITELISTED_USERS = "113472107526033408"
|
||||
ALERT_CHANNEL_ID = "1435905356932055233"
|
||||
BASE_URL = "https://bot.aethex.dev"
|
||||
|
||||
[userenv.production]
|
||||
BASE_URL = "https://aethex-bot-master.replit.app"
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@ function createWebServer(discordClient, supabase, options = {}) {
|
|||
const DISCORD_CLIENT_ID = process.env.DISCORD_CLIENT_ID;
|
||||
const DISCORD_CLIENT_SECRET = process.env.DISCORD_CLIENT_SECRET;
|
||||
const SESSION_SECRET = process.env.SESSION_SECRET || crypto.randomBytes(32).toString('hex');
|
||||
// Always use production URL for OAuth to avoid multiple redirect URIs
|
||||
const BASE_URL = 'https://aethex-bot-master.replit.app';
|
||||
// Production URL for OAuth
|
||||
const BASE_URL = process.env.BASE_URL || 'https://bot.aethex.dev';
|
||||
|
||||
app.use(cors({
|
||||
origin: true,
|
||||
|
|
|
|||
Loading…
Reference in a new issue