Files

18 lines
444 B
TypeScript
Raw Permalink Normal View History

2026-01-19 14:39:07 +05:30
import { defineConfig, loadEnv } from 'vite'
2026-01-19 11:05:40 +05:30
import react from '@vitejs/plugin-react-swc'
import tailwindcss from '@tailwindcss/vite'
// https://vite.dev/config/
2026-01-19 14:39:07 +05:30
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), '');
console.log(`\n 🔌 Backend API URL: \x1b[36m${env.VITE_API_BASE_URL}\x1b[0m\n`);
return {
2026-04-25 08:23:16 +03:00
server: {
port: 5174,
},
2026-01-19 14:39:07 +05:30
plugins: [react(), tailwindcss()],
}
2026-01-19 11:05:40 +05:30
})