23 lines
423 B
TypeScript
23 lines
423 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
host: '0.0.0.0',
|
|
port: 5173,
|
|
allowedHosts: [
|
|
'perro.montecalvo.me',
|
|
'localhost',
|
|
'127.0.0.1',
|
|
],
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:5174',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
})
|