Verify the new hostname before changing sign-in
Use a working Discord dashboard deployment with Add domain in Settings → HTTP domains. Record the current callback value in DISCORD_REDIRECT_URI and test a dashboard setting before the move. Add the new subdomain, publish the DNS-only CNAME and ownership TXT records exactly as shown, then select Check DNS.
Once the HTTPS certificate is issued, open the dashboard’s home page at the new hostname. Keep the current hostname and callback available while you verify the move. If the new hostname fails but the platform address loads, check the CNAME, TXT, and certificate status first. HTTPS and custom domain setup.
Set the exact redirect URL on both sides
In the Discord Developer Portal, add the full https://dashboard.example.com/oauth/callback URL to the application’s OAuth2 redirects, substituting your verified hostname. Leave the old redirect registered during the switch. Save the same full URL in DISCORD_REDIRECT_URI under Variables and restart.
Open the new hostname and start a fresh sign-in there. The starter sets a host-only OAuth2 state cookie when sign-in begins. The browser can return that cookie when Discord redirects to the same host. If the callback rejects the sign-in, compare the scheme, hostname and path in both settings and start from a new tab at the intended hostname. Discord OAuth2 authorization code flow.
Test a settings write before sharing the new link
Sign in as the configured dashboard user, open Server settings, save a reply, and run /dashboard-check in the selected server. If the new route fails, temporarily restore the previous redirect value in Variables, restart and sign in from the previous hostname. You can investigate DNS or the new callback while the earlier address is usable.
Once the new address passes the test, update any dashboard link your bot posts and remove any obsolete custom redirect from the Discord application. If you retire a previous custom hostname, remove it from HTTP domains before deleting its DNS records. Check dashboard permissions and saved replies.