fix(migrations): redirect 404 on self-hosted instances#2677
fix(migrations): redirect 404 on self-hosted instances#2677ItzNotABug merged 1 commit intoappwrite:mainfrom
Conversation
Console (appwrite/console)Project ID: Sites (1)
Tip GraphQL API works alongside REST and WebSocket protocols |
WalkthroughThe change modifies the migration wizard component to introduce a new local variable Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (5)**/*.{ts,tsx,js,jsx,svelte}📄 CodeRabbit inference engine (AGENTS.md)
Files:
src/routes/**/*.svelte📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.{ts,tsx,js,jsx,svelte,json}📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.svelte📄 CodeRabbit inference engine (AGENTS.md)
Files:
src/routes/**📄 CodeRabbit inference engine (AGENTS.md)
Files:
🔇 Additional comments (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |

Problem
After migrating a project from Cloud to a self-hosted instance, users were redirected to a non-existent URL (
/console/project-{projectId}/settings/migrations) causing a 404 error.Root Cause
regionparameter was missing from the redirect URL on self-hosted instances (whereregionis undefined).Solution
newlyCreatedProject.targetProject.region ?? 'default'to matches the self-hosted URL pattern.Related Issue
Closes #2183
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.