From b476ad5c9ea41cfd89453a4db1bbd1a3d8bfab1a Mon Sep 17 00:00:00 2001 From: Albert Byiringiro <88356155+albert-byiringiro@users.noreply.github.com> Date: Wed, 18 Dec 2024 22:36:24 +0200 Subject: [PATCH] feature: modified votefusion client --- client/package.json | 3 ++- package-lock.json | 1 + render.yaml | 8 ++++---- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/client/package.json b/client/package.json index 70cf255..16d73ef 100644 --- a/client/package.json +++ b/client/package.json @@ -21,7 +21,8 @@ "react-use": "^17.5.1", "socket.io-client": "^4.8.1", "valtio": "^1.13.2", - "wouter": "^2.12.1" + "wouter": "^2.12.1", + "vite": "^6.0.3" }, "devDependencies": { "@babel/core": "^7.26.0", diff --git a/package-lock.json b/package-lock.json index 0571ebb..2908a5b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,6 +31,7 @@ "react-use": "^17.5.1", "socket.io-client": "^4.8.1", "valtio": "^1.13.2", + "vite": "^6.0.3", "wouter": "^2.12.1" }, "devDependencies": { diff --git a/render.yaml b/render.yaml index 253f993..07508ec 100644 --- a/render.yaml +++ b/render.yaml @@ -45,8 +45,9 @@ services: branch: main buildCommand: > npm install && cd shared && npm install && npm run build && cd ../client && - npm install --save-dev vite @vitejs/plugin-react && - SKIP_PREFLIGHT_CHECK=true NODE_ENV=development npm run build + npm install --save-dev @types/react-transition-group @types/react @types/react-dom && + npm install vite @vitejs/plugin-react && + SKIP_PREFLIGHT_CHECK=true npm run build startCommand: cd client && npm run serve envVars: - key: VITE_API_URL @@ -54,5 +55,4 @@ services: - key: PORT value: 10000 - key: NODE_ENV - value: production - + value: production \ No newline at end of file