vite.config.mjs 382 B

1234567891011121314151617181920
  1. import { defineConfig } from "vite";
  2. import react from "@vitejs/plugin-react";
  3. export default defineConfig({
  4. build: {
  5. outDir: "dist/client",
  6. },
  7. optimizeDeps: {
  8. include: ["react", "react-dom/client"],
  9. },
  10. server: {
  11. host: "0.0.0.0",
  12. allowedHosts: ["terminal.local"],
  13. warmup: {
  14. clientFiles: ["./src/main.jsx"],
  15. },
  16. },
  17. plugins: [react()],
  18. });