In order to view the hosted version of the test task.
Open https://metamask-sign-in.vercel.app/ to view it in the browser.
To intall the project dependencies, you can run:
Then, to start the project locally, you can run:
- Even though the project is tiny, I decided to use redux-toolkit for state management, in order to reduce props-drilling and to make code more readable
- Initially started the project with app-router paradigm, but was unable to quickly fix the issue with NextResponse in api-routes, so to make things quicker I decided to switch to the pages-router paradigm
- If I were to build a Next.js application for production purpose, I'd better not use api-routes in Next.js, and build the api as a separate application by means of any reliable framework. To my experience api-routes is the weakest part of Next.js, that often causes unexpected and frustrating problems both in app-router and pages-router