diff --git a/server/package.json b/server/package.json index efc5431..acd1ca8 100644 --- a/server/package.json +++ b/server/package.json @@ -6,7 +6,7 @@ "scripts": { "lint": "eslint . --ext .ts", "bundle": "tsc", - "build": "tsc", + "build": "tsc && node dist/index.js", "watch": "tsc --w", "test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --detectOpenHandles --forceExit", "dev": "nodemon --experimental-json-modules --exec babel-node dist/index.js", diff --git a/server/tsconfig.json b/server/tsconfig.json index 19aefb9..53d689e 100644 --- a/server/tsconfig.json +++ b/server/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "outDir": "./public", + "outDir": "./dist", "moduleResolution": "node", "allowJs": true, "target": "ES6", diff --git a/server/vercel.json b/server/vercel.json index 1be4de0..b8d2db4 100644 --- a/server/vercel.json +++ b/server/vercel.json @@ -1,15 +1,9 @@ { "version": 2, - "builds": [ - { - "src": "tsconfig.js", - "use": "@vercel/node" - } - ], "routes": [ { "src": "/(.*)", - "dest": "./public/index.js" + "dest": "/" } ] }