File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed
Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 88
99RUN npm run build
1010
11- EXPOSE 3000
11+ EXPOSE 5173
1212
1313# 🚀 컨테이너를 계속 유지하도록 추가
1414CMD ["npm" , "run" , "start" ]
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change @@ -8,18 +8,22 @@ import fs from "fs";
88// vite.config.ts 파일에서 alias 설정을 추가해야 합니다.
99
1010export 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" )
You can’t perform that action at this time.
0 commit comments