diff --git a/package.json b/package.json index 137e543..e211a97 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "license": "MIT", "scripts": { "dev": "NODE_ENV=development tsx server/index.ts", - "build": "cd client && rm -rf node_modules package-lock.json && npm install && npm run build", + "build": "cd client && npm run build", "build:client": "cd client && npm run build", "build:server": "esbuild server/index.ts --platform=node --packages=external --bundle --format=esm --outdir=dist", "start": "NODE_ENV=production node dist/index.js", diff --git a/vercel.json b/vercel.json index a1d81e7..90a2d1e 100644 --- a/vercel.json +++ b/vercel.json @@ -1,6 +1,6 @@ { "version": 2, - "buildCommand": "npm ci && npm run build", + "buildCommand": "npm ci && cd client && npm ci && npm run build", "outputDirectory": "client/dist", "installCommand": "npm ci", "functions": {