import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import tsconfigPaths from "vite-tsconfig-paths";
import env from "vite-plugin-env-compatible";

export default defineConfig({
  server: {
    host: true,
    port: 3000,
    open: true,
  },
  build: {
    outDir: "build",
    sourcemap: true,
    minify: false,
  },
  plugins: [env({ prefix: "REACT_APP_" }), tsconfigPaths(), react()],
});
