20 lines
460 B
TypeScript
20 lines
460 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
import { resolve } from 'path'
|
|
import { fileURLToPath } from 'url'
|
|
|
|
const __dirname = fileURLToPath(new URL('.', import.meta.url))
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
resolve: {
|
|
alias: { '@': resolve(__dirname, 'src') }
|
|
},
|
|
server: {
|
|
proxy: {
|
|
'/api': 'http://localhost:3001'
|
|
}
|
|
}
|
|
})
|