Merge pull request #9 from Jeff-Emmett/new-website
Fix Vercel build: install client dependencies explicitly in buildCommand
This commit is contained in:
commit
025c59a9df
|
|
@ -5,7 +5,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "NODE_ENV=development tsx server/index.ts",
|
"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:client": "cd client && npm run build",
|
||||||
"build:server": "esbuild server/index.ts --platform=node --packages=external --bundle --format=esm --outdir=dist",
|
"build:server": "esbuild server/index.ts --platform=node --packages=external --bundle --format=esm --outdir=dist",
|
||||||
"start": "NODE_ENV=production node dist/index.js",
|
"start": "NODE_ENV=production node dist/index.js",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"buildCommand": "npm ci && npm run build",
|
"buildCommand": "npm ci && cd client && npm ci && npm run build",
|
||||||
"outputDirectory": "client/dist",
|
"outputDirectory": "client/dist",
|
||||||
"installCommand": "npm ci",
|
"installCommand": "npm ci",
|
||||||
"functions": {
|
"functions": {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue