import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import svgr from "vite-plugin-svgr";
import tailwindcss from "@tailwindcss/vite";

export default defineConfig({
  plugins: [react(), tailwindcss(), svgr()],
  server: {
    host: true,
    port: 3000,
    strictPort: true,
  },
  preview: {
    allowedHosts: [
      "tdam.rasadyar.com",
      "tdam.rasadyar.net",
      "tdam.rasadyar.ir",
      "dam.rasadyar.com",
      "dam.rasadyar.net",
      "dam.rasadyar.ir",
    ],
  },
  build: {
    outDir: "build",
  },
});
