profileShare

rasmusjy / voicetask

Read-only snapshot

No repository description.

main default branch 105 files Expires Sep 13, 2026, 9:06 AM
vite.config.ts 563 bytes
1 import { fileURLToPath } from 'node:url'
2 import { defineConfig } from 'vite'
3 import react from '@vitejs/plugin-react'
4
5 const clientDir = fileURLToPath(new URL('.', import.meta.url))
6 const sharedDir = fileURLToPath(new URL('../shared', import.meta.url))
7
8 export default defineConfig({
9 root: clientDir,
10 plugins: [react()],
11 resolve: {
12 alias: {
13 shared: sharedDir,
14 },
15 },
16 server: {
17 fs: { allow: ['..'] },
18 proxy: {
19 '/api': 'http://localhost:3001',
20 },
21 },
22 build: {
23 outDir: '../dist/client',
24 emptyOutDir: true,
25 },
26 })
27