Files
gatehouse-ui/vite.config.ts
T

26 lines
652 B
TypeScript
Raw Normal View History

import { defineConfig, loadEnv } from "vite";
2025-01-01 00:00:00 +00:00
import react from "@vitejs/plugin-react-swc";
import path from "path";
import { componentTagger } from "lovable-tagger";
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), "");
return {
server: {
host: "::",
port: 8080,
allowedHosts: env.VITE_ALLOWED_HOSTS?.split(",") || [
"ui.webauthn.local",
"gatehouse-ui.hawkvelt.tech",
],
},
plugins: [react(), mode === "development" && componentTagger()].filter(Boolean),
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
2025-01-01 00:00:00 +00:00
},
};
});