@ashutosh887
Full Stack / Web3 / Open Source / Engineering
I develop exceptional websites, web apps and tools that provide intuitive, pixel-perfect user interfaces with efficient and modern backends. 馃殌
Nothing here yet.
How can I add Environment Variables in Vite React Project in the vite.config.js file import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; const proxy_url = "http://localhost:5000/"; export default defineConfig({ plugins: [react()], server: { proxy: { "/api": { target: proxy_url, changeOrigin: true, rewrite: (path) => path.replace(/^/api/, ""), }, }, }, });