fixed nextjs build with super cringe solution (will be revert in next commit)

This commit is contained in:
Ren Amamiya
2023-04-21 10:45:29 +07:00
parent 5a7389b7e8
commit a2aad487ab
11 changed files with 44 additions and 26 deletions

View File

@@ -40,7 +40,7 @@ export default function Page() {
privkey = nip19.decode(privkey).data;
}
if (typeof getPublicKey(privkey) === 'string') {
router.push(`/onboarding/login/${privkey}`);
router.push(`/onboarding/login/step-2?privkey=${privkey}`, { forceOptimisticNavigation: true });
}
} catch (error) {
setError('key', {