I cant deploy and i dont know where to fix, despite reading similar helps.
Function Runtimes must have a valid version, for example now-php@1.0.0.
{ "buildCommand": "npm run build", "outputDirectory": "dist", "devCommand": "npm run dev", "installCommand": "npm install", "functions": { "backend/server.ts": { "runtime": "nodejs20.x" } }, "rewrites": [ { "source": "/api/(.)", "destination": "/backend/server.ts" }, { "source": "/(.)", "destination": "/index.html" } ] }
{
"name": "hackathon-react-starter",
"private": true,
"version": "0.0.0",
"type": "module",
"engines": {
"node": "20.x"},
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview"},
"dependencies": {
"@ai-sdk/google": "^2.0.14",
"@ai-sdk/react": "^2.0.44",
"@tailwindcss/vite": "^4.1.13",
"ai": "^5.0.44",
"chart.js": "^4.5.0",
"cors": "^2.8.5",
"date-fns": "^4.1.0",
"dotenv": "^17.2.2",
"express": "^5.1.0",
"express-rate-limit": "^8.1.0",
"lucide-react": "^0.544.0",
"react": "^19.1.1",
"react-calendar": "^6.0.0",
"react-chartjs-2": "^5.3.0",
"react-dom": "^19.1.1",
"react-markdown": "^10.1.0",
"react-router-dom": "^7.9.1",
"react-window": "^2.1.0",
"remark-gfm": "^4.0.1",
"tailwindcss": "^4.1.13",
"zod": "^4.1.8"},
"devDependencies": {
"@eslint/js": "^9.33.0",
"@types/cors": "^2.8.19",
"@types/express": "^5.0.3",
"@types/react": "^19.1.10",
"@types/react-calendar": "^3.9.0",
"@types/react-chartjs-2": "^2.0.2",
"@types/react-dom": "^19.1.7",
"@vercel/node": "^5.3.22",
"@vitejs/plugin-react": "^5.0.0",
"eslint": "^9.33.0",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.20",
"globals": "^16.3.0",
"ts-node": "^10.9.2",
"tsx": "^4.20.5",
"typescript": "\~5.8.3",
"typescript-eslint": "^8.39.1",
"vite": "^7.1.2"}
}
vite react, ai sdk, express