mirror of
https://github.com/ramvignesh-b/pi-ku.git
synced 2026-05-04 15:56:56 +00:00
17 lines
416 B
TypeScript
17 lines
416 B
TypeScript
import tailwindcss from "@tailwindcss/vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import { defineConfig, loadEnv } from "vite";
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig(({ mode }) => {
|
|
const env = loadEnv(mode, "../", "");
|
|
return {
|
|
envDir: "../",
|
|
plugins: [react(), tailwindcss()],
|
|
server: {
|
|
port: Number(env.FRONTEND_PORT),
|
|
host: env.FRONTEND_DOMAIN,
|
|
},
|
|
}
|
|
});
|