Files
DentalManagementElogin/apps/Frontend/vite.config.ts

21 lines
415 B
TypeScript

import { defineConfig, loadEnv } from "vite";
import react from "@vitejs/plugin-react";
import path from "path";
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), "");
return {
plugins: [react()],
server: {
host: env.HOST,
port: Number(env.PORT),
},
resolve: {
alias: {
"@": path.resolve(__dirname, "src"),
},
},
};
});