Skip to content

Commit a2bfc23

Browse files
committed
url updated
1 parent ec20d76 commit a2bfc23

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

backend/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ app.use(bodyParser.urlencoded({ extended: true }));
2121
if (process.env.NODE_ENV === "PRODUCTION") {
2222
app.use(
2323
cors({
24-
origin: "http://localhost:3000",
24+
origin: "process.env.CLIENT_URL",
2525
credentials: true,
2626
})
2727
);

backend/socketServer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const serverStore = require("./serverStore");
1515
const registerSocketServer = (server) => {
1616
let url;
1717
if (process.env.NODE_ENV === "PRODUCTION") {
18-
url = "http://localhost:3000";
18+
url = "process.env.CLIENT_URL";
1919
} else {
2020
url = "http://localhost:3000";
2121
}

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "frontend",
33
"version": "0.1.0",
44
"private": true,
5-
"proxy": "https://api.recruitingwebsite.online",
5+
"proxy": "http://localhost:4000",
66
"dependencies": {
77
"@chakra-ui/icons": "^2.1.1",
88
"@chakra-ui/react": "^2.8.2",

0 commit comments

Comments
 (0)