import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; export default defineConfig({ plugins: [react()], resolve: { // @proposal-system/api-contracts is a file: symlink; preserve it so its // 'zod' import resolves from web/node_modules in CI (shared has no // installed node_modules there). Subpath entrypoints (./schemas) resolve // via the package's `exports` map. preserveSymlinks: true, }, server: { port: 5173, proxy: { '/api': { target: 'http://localhost:5000', changeOrigin: true, }, }, }, });