Skip to content

Commit 6e28928

Browse files
authored
Merge pull request #56 from nuon-dev/main
fix: port number
2 parents 5cf2b0e + f75390c commit 6e28928

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

client/src/config/axios.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,29 @@ import axios from "axios"
33
export const GetUrl = () => {
44
const target = process.env.NEXT_PUBLIC_API_TARGET
55

6-
let SERVER_PORT = 8000
7-
let CLIENT_PORT = 8080
6+
let SERVER_PORT = "8000"
7+
let CLIENT_PORT = "8080"
88
switch (target) {
99
case "prod":
10-
SERVER_PORT = 8000
11-
CLIENT_PORT = 8080
10+
SERVER_PORT = "8000"
11+
CLIENT_PORT = "8080"
1212
return {
1313
host: process.env.NEXT_PUBLIC_PROD_SERVER,
1414
serverPort: SERVER_PORT,
1515
clientPort: CLIENT_PORT,
1616
}
1717
case "dev":
18-
SERVER_PORT = 8001
19-
CLIENT_PORT = 80
18+
SERVER_PORT = "8001"
19+
CLIENT_PORT = ""
2020
return {
2121
host: process.env.NEXT_PUBLIC_DEV_SERVER,
2222
serverPort: SERVER_PORT,
2323
clientPort: CLIENT_PORT,
2424
}
2525
case "local":
2626
default:
27-
SERVER_PORT = 8000
28-
CLIENT_PORT = 80
27+
SERVER_PORT = "8000"
28+
CLIENT_PORT = ""
2929
return {
3030
host: process.env.NEXT_PUBLIC_LOCAL_SERVER,
3131
serverPort: SERVER_PORT,

0 commit comments

Comments
 (0)