Skip to content

Commit 9adbfa1

Browse files
committed
env config
1 parent 9b65287 commit 9adbfa1

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

client/src/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export const backendUrl = "http://localhost:3000/api"
2-
// export const backendUrl = import.meta.env.VITE_BACKEND_URL
1+
// export const backendUrl = "http://localhost:3000/api"
2+
export const backendUrl = import.meta.env.VITE_BACKEND_URL

client/src/pages/Signup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { ToastContainer, toast } from "react-toastify";
1010
import "react-toastify/dist/ReactToastify.css";
1111
import { useRecoilState } from "recoil";
1212
import { UserAtom } from "../stores/useratoms/UserAtom";
13-
import debounce from "lodash";
13+
1414

1515

1616
interface Signupinput{

server/vercel.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
"routes": [
1111
{
1212
"src": "/(.*)",
13-
"dest": "dist/index.js"
13+
"dest": "dist/index.js",
14+
"headers":{
15+
"Access-Control-Allow-Origin":"*"
16+
}
1417
}
1518
]
1619
}

0 commit comments

Comments
 (0)