1
Fork 0
react-template/vite.config.js

12 lines
210 B
JavaScript

import { defineConfig } from "vite";
export default defineConfig({
server: {
proxy: {
"/api": "http://localhost:3000",
},
},
esbuild: {
jsxInject: `import React from 'react'`,
},
});