the statusphere demo reworked into a vite/react app in a monorepo
at main 610 B view raw
1import tailwindcss from '@tailwindcss/vite' 2import react from '@vitejs/plugin-react' 3import { defineConfig } from 'vite' 4import tsconfigPaths from 'vite-tsconfig-paths' 5 6// https://vitejs.dev/config/ 7export default defineConfig({ 8 plugins: [ 9 react({ 10 babel: { 11 plugins: [['babel-plugin-react-compiler', { target: '19' }]], 12 }, 13 }), 14 tailwindcss(), 15 tsconfigPaths(), 16 ], 17 server: { 18 host: '127.0.0.1', 19 port: 3000, 20 proxy: { 21 '^/(xrpc|oauth|client-metadata\.json)/.*': { 22 target: 'http://localhost:3001', 23 changeOrigin: true, 24 }, 25 }, 26 }, 27})