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