You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

16 lines
296 B

  1. import { defineConfig } from "vite";
  2. import react from "@vitejs/plugin-react-swc";
  3. // https://vitejs.dev/config/
  4. export default defineConfig({
  5. server: {
  6. proxy: {
  7. "/api": {
  8. target: "http://localhost:3000",
  9. secure: false,
  10. },
  11. },
  12. },
  13. plugins: [react()],
  14. });