From 7e06ab9e0bf5a745c9fbfdbf229ad327f1d0a5f5 Mon Sep 17 00:00:00 2001 From: DenysShchypt Date: Wed, 14 Aug 2024 22:43:08 +0300 Subject: [PATCH] new vercelconfig --- client/package.json | 2 +- client/tsconfig.json | 2 +- client/vercel.json | 37 +++++-------------------------------- 3 files changed, 7 insertions(+), 34 deletions(-) diff --git a/client/package.json b/client/package.json index af1515d2..73e27670 100644 --- a/client/package.json +++ b/client/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "dev": "vite", - "build": "tsc -b && vite build", + "build": "vite build", "lint": "eslint \"src/**/*.{ts,tsx,js,jsx}\" --fix", "preview": "vite preview", "format": "prettier --write \"../**/*.{ts,tsx,js,jsx}\"" diff --git a/client/tsconfig.json b/client/tsconfig.json index 53851dbc..743bcbbf 100644 --- a/client/tsconfig.json +++ b/client/tsconfig.json @@ -22,7 +22,7 @@ "paths": { "@prisma": ["src/components/*"], "@prisma/*": ["src/store/*"] - } + }, }, "include": [ "src/**/*", diff --git a/client/vercel.json b/client/vercel.json index 306d9dc2..91c80d79 100644 --- a/client/vercel.json +++ b/client/vercel.json @@ -1,34 +1,7 @@ { - "version": 2, - "builds": [ - { - "src": "api/index.js", - "use": "@vercel/node" - }, - { - "src": "client/package.json", - "use": "@vercel/static-build", - "config": { - "distDir": "build" - } - } - ], - "routes": [ - { - "src": "/api/(.*)", - "dest": "/api/index.js" - }, - { - "src": "^/static/(.*)", - "dest": "/client/static/$1" - }, - { - "src": "/(.*)\\.png", - "dest": "/client/$1.png" - }, - { - "src": "/(.*)", - "dest": "/client/index.html" - } - ] + "build": { + "env": { + "NODE_ENV": "production" + } } +}