packages/client/vite.config.ts 511 B raw
1
import { defineConfig } from 'vite'
2
import react from '@vitejs/plugin-react'
3
4
export default defineConfig({
5
  plugins: [react()],
6
  // Define env variables for the client
7
  define: {
8
    'import.meta.env.VITE_API_URL': JSON.stringify(process.env.VITE_API_URL || ''),
9
  },
10
  server: {
11
    port: 5173,
12
    proxy: {
13
      '/feed-raw': 'http://localhost:3000',
14
      '/feed': 'http://localhost:3000',
15
      '/health': 'http://localhost:3000',
16
    },
17
  },
18
  build: {
19
    outDir: 'dist',
20
    sourcemap: true,
21
  },
22
})