Подключите Vite с Node JS

//use proxy 

//vite.config.js
server: {
    proxy: {
      "/api": "http://localhost:5000/", // the address that u serve in the backend 
    },
  },
Marwen Labidi