recipe-app/frontend/vite.config.ts
2025-09-14 17:30:33 +02:00

13 lines
326 B
TypeScript

import { defineConfig, loadEnv } from "vite"
import react from "@vitejs/plugin-react"
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), "")
return {
plugins: [react()],
server: {
host: env.VITE_HOST || "localhost",
port: Number(env.VITE_PORT) || 5173,
},
}
})