Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

connect vite with node js

//use proxy 

//vite.config.js
server: {
    proxy: {
      "/api": "http://localhost:5000/", // the address that u serve in the backend 
    },
  },
 
PREVIOUS NEXT
Tagged: #connect #vite #node #js
ADD COMMENT
Topic
Name
5+2 =