File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ app.use(bodyParser.urlencoded({ extended: true }));
21
21
if ( process . env . NODE_ENV === "PRODUCTION" ) {
22
22
app . use (
23
23
cors ( {
24
- origin : "http://localhost:3000 " ,
24
+ origin : "process.env.CLIENT_URL " ,
25
25
credentials : true ,
26
26
} )
27
27
) ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const serverStore = require("./serverStore");
15
15
const registerSocketServer = ( server ) => {
16
16
let url ;
17
17
if ( process . env . NODE_ENV === "PRODUCTION" ) {
18
- url = "http://localhost:3000 " ;
18
+ url = "process.env.CLIENT_URL " ;
19
19
} else {
20
20
url = "http://localhost:3000" ;
21
21
}
Original file line number Diff line number Diff line change 2
2
"name" : " frontend" ,
3
3
"version" : " 0.1.0" ,
4
4
"private" : true ,
5
- "proxy" : " https ://api.recruitingwebsite.online " ,
5
+ "proxy" : " http ://localhost:4000 " ,
6
6
"dependencies" : {
7
7
"@chakra-ui/icons" : " ^2.1.1" ,
8
8
"@chakra-ui/react" : " ^2.8.2" ,
You can’t perform that action at this time.
0 commit comments