Merge pull request #8 from Jeff-Emmett/new-website

Fix Vercel build configuration and API structure
This commit is contained in:
Jeff Emmett 2025-06-19 14:16:58 +02:00 committed by GitHub
commit 13b1952749
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -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",

View File

@ -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