From 789945af921a73a994d5baedb8ced4b559771ee2 Mon Sep 17 00:00:00 2001 From: Albert Byiringiro <88356155+albert-byiringiro@users.noreply.github.com> Date: Thu, 19 Dec 2024 20:45:22 +0200 Subject: [PATCH] feature: improve this render yaml file especially on client services --- render.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/render.yaml b/render.yaml index 29275ca..da31ee2 100644 --- a/render.yaml +++ b/render.yaml @@ -43,17 +43,16 @@ services: plan: free region: frankfurt branch: main - rootDir: client buildCommand: > - cd ../shared && npm install && npm run build && cd ../client && + npm ci && cd shared && npm install && npm run build && cd ../client && npm install --save-dev @types/react-transition-group @types/react @types/react-dom && - npm install vite @vitejs/plugin-react && + npm install vite @vitejs/plugin-react && SKIP_PREFLIGHT_CHECK=true npm run build - startCommand: cd ../ && npm install && npm run start + startCommand: cd client && npm run serve envVars: - key: VITE_API_URL value: https://votefusion-api.onrender.com - key: PORT value: 10000 - - key: NODE_ENV - value: production + - key: NODE_ENV + value: development \ No newline at end of file