🔧 Add Discord redirect URI configuration for local deployment
This commit is contained in:
@@ -237,11 +237,20 @@ async function deployLocal(config) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Up
|
// Set Discord redirect URI for local deployment
|
||||||
|
const discordRedirectUri = `http://localhost:${config.port}/oauth/callback`;
|
||||||
|
console.log(` 🔐 Discord Redirect URI: ${discordRedirectUri}`);
|
||||||
|
|
||||||
|
// Up with Discord redirect URI
|
||||||
console.log(' 🚀 Starting containers...');
|
console.log(' 🚀 Starting containers...');
|
||||||
execSync(`docker compose -f "${tmpComposePath}" up -d --build`, {
|
execSync(`docker compose -f "${tmpComposePath}" up -d --build`, {
|
||||||
cwd: SOURCE_DIR,
|
cwd: SOURCE_DIR,
|
||||||
stdio: 'inherit'
|
stdio: 'inherit',
|
||||||
|
env: {
|
||||||
|
...process.env,
|
||||||
|
VITE_DISCORD_REDIRECT_URI: discordRedirectUri,
|
||||||
|
DISCORD_REDIRECT_URI: discordRedirectUri
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Health Check
|
// Health Check
|
||||||
|
|||||||
Reference in New Issue
Block a user