8f83624ffe
Avoid conflict with another local service on 3000; align Vite proxies and docs.
13 lines
278 B
TypeScript
13 lines
278 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
const apiTarget = process.env.VITE_API_TARGET ?? 'http://localhost:3010';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
port: 5175,
|
|
proxy: { '/api': apiTarget },
|
|
},
|
|
});
|