the statusphere demo reworked into a vite/react app in a monorepo
1import path from 'node:path'
2import tailwindcss from '@tailwindcss/vite'
3import react from '@vitejs/plugin-react'
4import { defineConfig } from 'vite'
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 ],
16 server: {
17 host: '127.0.0.1',
18 port: 3000,
19 proxy: {
20 '/api': {
21 target: 'http://localhost:3001',
22 changeOrigin: true,
23 },
24 },
25 },
26 resolve: {
27 alias: {
28 '#': path.resolve(__dirname, './src'),
29 },
30 },
31})