Update documentation and fix Discord verification page title
Update replit.md with Discord bot setup details and fix the page title on the Discord verification page. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 0e69632f-5ac3-4ead-8fb2-ad379d08683b Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7c94b7a0-29c7-4f2e-94ef-44b2153872b7/9203795e-937a-4306-b81d-b4d5c78c240e/saoW2ee Replit-Helium-Checkpoint-Created: true
This commit is contained in:
parent
becc8f0210
commit
36178a17e7
3 changed files with 38 additions and 2 deletions
4
.replit
4
.replit
|
|
@ -60,6 +60,10 @@ externalPort = 3000
|
|||
localPort = 40437
|
||||
externalPort = 3001
|
||||
|
||||
[[ports]]
|
||||
localPort = 46117
|
||||
externalPort = 3002
|
||||
|
||||
[deployment]
|
||||
deploymentTarget = "autoscale"
|
||||
run = ["node", "dist/server/production.mjs"]
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ export default function DiscordVerify() {
|
|||
return (
|
||||
<Layout>
|
||||
<SEO
|
||||
title="Link Discord Account | AeThex"
|
||||
pageTitle="Link Discord Account | AeThex"
|
||||
description="Link your Discord account to your AeThex profile"
|
||||
/>
|
||||
|
||||
|
|
|
|||
34
replit.md
34
replit.md
|
|
@ -78,6 +78,31 @@ npm start # Start production server
|
|||
- **GameForge**: Sprint management, team collaboration
|
||||
- **Foundation**: Courses, mentorship programs, achievements
|
||||
|
||||
## Discord Bot Integration
|
||||
|
||||
### Bot Details
|
||||
- **Bot Name**: AeThex#9389
|
||||
- **Workflow**: "Discord Bot" runs alongside main application
|
||||
- **Health Check**: Port 8044
|
||||
|
||||
### Slash Commands
|
||||
| Command | Description |
|
||||
|---------|-------------|
|
||||
| `/verify` | Link Discord account to AeThex |
|
||||
| `/profile` | View AeThex profile |
|
||||
| `/set-realm` | Set preferred realm |
|
||||
| `/unlink` | Unlink Discord from AeThex |
|
||||
| `/verify-role` | Verify Discord roles |
|
||||
|
||||
### Database Tables
|
||||
- `discord_verifications` - Temporary verification codes (15 min expiry)
|
||||
- `discord_links` - Permanent Discord-to-AeThex account links
|
||||
|
||||
### Required Secrets
|
||||
- `DISCORD_BOT_TOKEN` - Bot token from Discord Developer Portal
|
||||
- `DISCORD_CLIENT_ID` - Application client ID
|
||||
- `SUPABASE_SERVICE_ROLE` - Service role key for database operations
|
||||
|
||||
## Recent Changes (December 2, 2025)
|
||||
- ✅ Configured Vite to run on port 5000 for Replit compatibility
|
||||
- ✅ Set up proper host configuration (0.0.0.0) for Replit proxy
|
||||
|
|
@ -87,8 +112,15 @@ npm start # Start production server
|
|||
- ✅ Configured deployment settings for Replit autoscale
|
||||
- ✅ Fixed server build to output `dist/server/production.mjs` for deployment
|
||||
- ✅ Verified application runs without errors in Replit environment
|
||||
- ✅ Discord bot (AeThex#9389) running and connected to 7 servers
|
||||
- ✅ Created discord_verifications and discord_links database tables
|
||||
- ✅ Registered all 5 slash commands with Discord API
|
||||
- ✅ Extended auth loading timeout to 30s for slow networks
|
||||
- ✅ Fixed /community route with wildcard for nested tabs
|
||||
- ✅ Fixed /developers route showing real user data
|
||||
|
||||
## Notes
|
||||
- Supabase credentials must be configured in Replit Secrets for the app to fully function
|
||||
- The application integrates an Express backend directly into the Vite dev server for seamless API development
|
||||
- Discord bot functionality requires additional Discord API credentials
|
||||
- Discord bot runs as a separate workflow on port 8044 (health check only)
|
||||
- Main application runs on port 5000
|
||||
|
|
|
|||
Loading…
Reference in a new issue