Fix TypeScript error in vite.ts and add vercelignore

This commit is contained in:
Michi 2025-06-23 14:24:53 +02:00
parent 39fdc5dd01
commit c94a98c1fc
3 changed files with 15 additions and 2 deletions

10
.vercelignore Normal file
View File

@ -0,0 +1,10 @@
server/
client/
dist/
node_modules/
.git/
*.md
vite.config.ts
tsconfig.json
postcss.config.js
tailwind.config.ts

View File

@ -23,7 +23,7 @@ export async function setupVite(app: Express, server: Server) {
const serverOptions = {
middlewareMode: true,
hmr: { server },
allowedHosts: true,
allowedHosts: ['localhost', '.vercel.app'] as string[],
};
const vite = await createViteServer({

View File

@ -3,7 +3,10 @@
"builds": [
{
"src": "api/index.ts",
"use": "@vercel/node"
"use": "@vercel/node",
"config": {
"includeFiles": ["package.json"]
}
}
],
"routes": [