This is a react todo list application built with Next.js, including to-do creation, classify, editing, deleting and other functions.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
- If the expected page cannot be redirected after vercel is deployed, you need to configure NEXTAUTH_URL, it wasn't needed before.
- Dynamic file creation is not supported on vercel, so the logic is not valid after deployment
If you want to update your avatar, you need to upload it to the GitHub repository based on the user.id, file address ispublic/avatar/${user.id}-avatar.png
If there are other users, I would consider storing the avatars in the database in base64 format.