fix(frontend): keep browser API on same-origin rewrites in dev

Document that NEXT_PUBLIC_WAVELET_BACKEND_URL must stay unset for local
next dev so axios hits /api/* and Next rewrites proxy to the backend.
This commit is contained in:
ryan
2026-07-24 16:37:24 +08:00
parent a4588b05e0
commit 9f15f42b47
75 changed files with 5971 additions and 2450 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ export function RegisterForm() {
toast.error(t('closed'));
router.replace('/login');
}
}, [publicConfigQuery.isSuccess, registrationEnabled, router]);
}, [publicConfigQuery.isSuccess, registrationEnabled, router, t]);
const registerMutation = useMutation({
mutationFn: (req: RegisterRequest) => {