Skip to content

Commit cee4167

Browse files
author
yuhojae
committed
포트번호 5173 변경
1 parent a05f8c0 commit cee4167

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ COPY . .
88

99
RUN npm run build
1010

11-
EXPOSE 3000
11+
EXPOSE 5173
1212

1313
# 🚀 컨테이너를 계속 유지하도록 추가
1414
CMD ["npm", "run", "start"]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "vite build --mode production",
99
"lint": "eslint .",
1010
"preview": "vite preview",
11-
"start": "vite --port 3000 --mode production"
11+
"start": "vite --port 5173 --mode production"
1212
},
1313
"dependencies": {
1414
"@tailwindcss/vite": "^4.0.3",

vite.config.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,22 @@ import fs from "fs";
88
// vite.config.ts 파일에서 alias 설정을 추가해야 합니다.
99

1010
export default defineConfig(({ mode }: { mode: string }) => {
11+
console.log("mode", mode);
12+
1113
const isProduction = mode === "production";
1214
const keyPath = "./certs/key.pem";
1315
const certPath = "./certs/cert.pem";
1416

1517
return {
1618
server: {
17-
port: 3000,
1819
host: true, // 외부에서 접속 가능하도록 설정
1920
strictPort: true,
2021
allowedHosts: ["mbtips.kr"],
2122
hmr: isProduction
22-
? false
23+
? {
24+
host: "mbtips.kr",
25+
protocol: "wss"
26+
}
2327
: {
2428
host: "localhost",
2529
protocol: "wss"
@@ -51,7 +55,10 @@ export default defineConfig(({ mode }: { mode: string }) => {
5155
find: "@/constants",
5256
replacement: path.resolve(__dirname, "src/constants")
5357
},
54-
58+
{
59+
find: "@/store",
60+
replacement: path.resolve(__dirname, "src/store")
61+
},
5562
{
5663
find: "@/libs",
5764
replacement: path.resolve(__dirname, "src/libs")

0 commit comments

Comments
 (0)