/ proof-of-concept / takes
Sign in
proof-of-concept / takes
takes / vite.config.ts
14 lines · 371 BBlameHistoryRaw
1import { defineConfig } from 'vite';
2import react from '@vitejs/plugin-react';
4// In development the UI is served by Vite on :5173 and API/media requests go to the server on :4455.
5export default defineConfig({
6 plugins: [react()],
7 server: {
8 port: 5173,
9 proxy: {
10 '/api': 'http://localhost:4455',
11 '/media': 'http://localhost:4455',
12 },
13 },
14});
↑↓ move↵openescclose