Can't deploy Vite/Nodejs app

I have a frontend and backend and I’m trying to deploy it as one repo however there is an error with my vercel.json. The build fails saying my runtime is not a valid version. here is my vercel.json

{
    "version": 2,
    "functions": {
      "backend/api/**/*.ts": {
        "runtime": "edge"
      }
    },
    "rewrites": [
      { "source": "/api/(.*)", "destination": "/backend/api/$1" },
      { "source": "/(.*)", "destination": "/frontend/$1" }
    ]
  }

Hi, Architwa! Welcome to the Vercel Community :waving_hand:

Your vercel.json configuration looks good to me, but it’d be even more helpful to understand what error you’re getting exactly?

Sharing these docs in case they’re helpful →

1 Like