From cee41676c0dfc4ea8c688f6ab4b18d7ebf6069d4 Mon Sep 17 00:00:00 2001 From: yuhojae Date: Mon, 14 Apr 2025 17:25:00 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=ED=8F=AC=ED=8A=B8=EB=B2=88=ED=98=B8=205173?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- package.json | 2 +- vite.config.ts | 13 ++++++++++--- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 57eb52d..d138e38 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ COPY . . RUN npm run build -EXPOSE 3000 +EXPOSE 5173 # πŸš€ μ»¨ν…Œμ΄λ„ˆλ₯Ό 계속 μœ μ§€ν•˜λ„λ‘ μΆ”κ°€ CMD ["npm", "run", "start"] \ No newline at end of file diff --git a/package.json b/package.json index fd4b2a7..e7aa450 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "build": "vite build --mode production", "lint": "eslint .", "preview": "vite preview", - "start": "vite --port 3000 --mode production" + "start": "vite --port 5173 --mode production" }, "dependencies": { "@tailwindcss/vite": "^4.0.3", diff --git a/vite.config.ts b/vite.config.ts index 94140d3..1db2c9f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -8,18 +8,22 @@ import fs from "fs"; // vite.config.ts νŒŒμΌμ—μ„œ alias 섀정을 μΆ”κ°€ν•΄μ•Ό ν•©λ‹ˆλ‹€. export default defineConfig(({ mode }: { mode: string }) => { + console.log("mode", mode); + const isProduction = mode === "production"; const keyPath = "./certs/key.pem"; const certPath = "./certs/cert.pem"; return { server: { - port: 3000, host: true, // μ™ΈλΆ€μ—μ„œ 접속 κ°€λŠ₯ν•˜λ„λ‘ μ„€μ • strictPort: true, allowedHosts: ["mbtips.kr"], hmr: isProduction - ? false + ? { + host: "mbtips.kr", + protocol: "wss" + } : { host: "localhost", protocol: "wss" @@ -51,7 +55,10 @@ export default defineConfig(({ mode }: { mode: string }) => { find: "@/constants", replacement: path.resolve(__dirname, "src/constants") }, - + { + find: "@/store", + replacement: path.resolve(__dirname, "src/store") + }, { find: "@/libs", replacement: path.resolve(__dirname, "src/libs") From 682e73d993e803c12fd3f8158c0ca8109aa0fd47 Mon Sep 17 00:00:00 2001 From: yuhojae Date: Mon, 14 Apr 2025 18:31:31 +0900 Subject: [PATCH 2/3] =?UTF-8?q?cicd.yml=ED=8C=8C=EC=9D=BC=20=ED=8F=AC?= =?UTF-8?q?=ED=8A=B8=EB=B2=88=ED=98=B8=205173=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cicd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index e2aa423..f37e765 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -48,5 +48,5 @@ jobs: sudo docker stop embitips_front || true sudo docker rm embitips_front || true sudo docker pull ${{ secrets.DOCKER_USERNAME }}/embitips_front - sudo docker run -d -p 3000:3000 --name embitips_front ${{ secrets.DOCKER_USERNAME }}/embitips_front + sudo docker run -d -p 5173:5173 --name embitips_front ${{ secrets.DOCKER_USERNAME }}/embitips_front sudo docker image prune -f From 54cc3548d01610925e5e7a3c76a5705145596fd8 Mon Sep 17 00:00:00 2001 From: soohyuniii Date: Wed, 16 Apr 2025 16:11:12 +0900 Subject: [PATCH 3/3] fix: remove unused codes --- vite.config.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 4bb3e6a..da11d29 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -8,8 +8,6 @@ import fs from "fs"; // vite.config.ts νŒŒμΌμ—μ„œ alias 섀정을 μΆ”κ°€ν•΄μ•Ό ν•©λ‹ˆλ‹€. export default defineConfig(({ mode }: { mode: string }) => { - console.log("mode", mode); - const isProduction = mode === "production"; const keyPath = "./certs/key.pem"; const certPath = "./certs/cert.pem"; @@ -21,10 +19,7 @@ export default defineConfig(({ mode }: { mode: string }) => { strictPort: true, allowedHosts: ["mbtips.kr"], hmr: isProduction - ? { - host: "mbtips.kr", - protocol: "wss" - } + ? false : { host: "localhost", protocol: "wss" @@ -56,10 +51,6 @@ export default defineConfig(({ mode }: { mode: string }) => { find: "@/constants", replacement: path.resolve(__dirname, "src/constants") }, - { - find: "@/store", - replacement: path.resolve(__dirname, "src/store") - }, { find: "@/libs", replacement: path.resolve(__dirname, "src/libs")