Files
BarevClub/apps/admin/vite.config.ts
T
2026-10-25 22:55:29 +04:00

14 lines
510 B
TypeScript

import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
// В разработке API проксируется — Mini App и API на одном origin (удобно и для туннеля https)
export default defineConfig({
plugins: [react()],
server: {
host: true,
allowedHosts: true,
proxy: { '/trpc': 'http://localhost:4000', '/files': 'http://localhost:4000', '/client-log': 'http://localhost:4000' },
},
build: { target: 'es2022', sourcemap: true },
});