Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

390 B
Raw Blame
import react from "@vitejs/plugin-react";
import { defineConfig, loadEnv } from "vite";

export default defineConfig(({ mode }) => {
  const env = loadEnv(mode, process.cwd(), "");
  const clientPort = parseInt(env.CLIENT_PORT, 10) || 4400;

  return {
    plugins: [react()],
    server: {
      strictPort: true,
      port: clientPort,
    },
    preview: { port: clientPort },
  };
});