From 3aecfd8e9602ee247b5491a44c71b69490c03451 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Thu, 19 Jun 2025 14:16:14 +0200 Subject: [PATCH] Fix Vercel build configuration and API structure --- package.json | 2 +- vercel.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a9cf81b..137e543 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 && npm install && npm run build", + "build": "cd client && rm -rf node_modules package-lock.json && npm install && 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 094a187..a1d81e7 100644 --- a/vercel.json +++ b/vercel.json @@ -1,7 +1,8 @@ { "version": 2, - "buildCommand": "npm run build", + "buildCommand": "npm ci && npm run build", "outputDirectory": "client/dist", + "installCommand": "npm ci", "functions": { "api/index.ts": { "maxDuration": 30