Files
fn-registry agent f803067cb1 chore: initial sync
2026-04-28 22:12:49 +02:00

27 lines
651 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { resolve } from 'path'
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@': resolve(__dirname, './src'),
'@fn_library': resolve(__dirname, '../../../frontend/functions/ui'),
},
dedupe: ['react', 'react-dom', '@mantine/core', '@mantine/hooks', '@mantine/notifications', '@mantine/charts'],
},
css: {
postcss: resolve(__dirname, './postcss.config.cjs'),
},
server: {
port: 5188,
proxy: {
'/api': {
target: 'http://localhost:8787',
changeOrigin: true,
},
},
},
})