Skip to content

Commit

Permalink
added vercel config
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiteSnek committed Jun 20, 2024
2 parents 9f6c27f + 6db5cb0 commit 226cebe
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
Binary file removed backend/public/temp/aun2nvexiq381.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion backend/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ app.use("/api/v1/users",userRouter)
app.use("/api/v1/lists",listRouter)
app.use("/api/v1/tasks",taskRouter)

export {app}
export {app}
8 changes: 8 additions & 0 deletions backend/src/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"version": 2,
"builds": [{"src": "./index.js", "use": "@vercel/node"}],
"routes": [{
"src": "/(.*)",
"dest": "/"
}]
}
6 changes: 3 additions & 3 deletions frontend/src/components/List.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ const List = () => {
<div className="flex justify-center gap-4 items-center">
{/* */}
<Popup contentStyle={{width: "30%",borderRadius: '10px'}} trigger=
{ <button className="rounded-full hover:bg-red-800 w-8 h-8 flex justify-center items-center"><IconContext.Provider value={{ color: "white", size: "20px" }}>
<FaPencil />
</IconContext.Provider></button>}
{ <button className="rounded-full hover:bg-red-800 w-8 h-8 flex justify-center items-center"><IconContext.Provider value={{ color: "white", size: "20px" }}>
<FaPencil />
</IconContext.Provider></button>}
modal nested>
{
close => (
Expand Down
1 change: 1 addition & 0 deletions frontend/src/pages/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const Login = () => {
const errorMessage = error.response.data.match(
/<pre>Error: (.*?)<br>/
)[1];
setError(errorMessage)
console.log(errorMessage)
}
};
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Register.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const Register = () => {
type={show ? "text" : "password"}
placeholder="Enter Password"
defaultValue={details.password}
onChange={(e) => setPassword(e.target.value)}
onChange={(e) => setDetails({ ...details, password: e.target.value })}
/>
<button type="button" className="absolute top-0 right-0 p-2" onClick={togglePasswordVisibility}>
{show ? <IconContext.Provider value={{ size: "27px" }}>
Expand Down

0 comments on commit 226cebe

Please sign in to comment.