Conecte o Vite com o nó js

//use proxy 

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