18 lines
444 B
TypeScript
18 lines
444 B
TypeScript
import { defineConfig, loadEnv } from 'vite'
|
|
import react from '@vitejs/plugin-react-swc'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
// https://vite.dev/config/
|
|
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 {
|
|
server: {
|
|
port: 5174,
|
|
|
|
},
|
|
plugins: [react(), tailwindcss()],
|
|
}
|
|
})
|
|
|