15 lines
304 B
JavaScript
15 lines
304 B
JavaScript
import react from '@vitejs/plugin-react';
|
|
import { env } from 'node:process';
|
|
import { defineConfig } from 'vite';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
host: env.VITE_HOST ?? '127.0.0.1',
|
|
port: 5173,
|
|
proxy: {
|
|
'/api': 'http://127.0.0.1:3000',
|
|
},
|
|
},
|
|
});
|