19 lines
387 B
TypeScript
19 lines
387 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import deno from "@deno/vite-plugin";
|
|
|
|
export default defineConfig({
|
|
server: {
|
|
port: 3000,
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://localhost:8000",
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
plugins: [react(), deno()],
|
|
optimizeDeps: {
|
|
include: ["react/jsx-runtime"],
|
|
},
|
|
}); |