mirror of
https://github.com/Dictionarry-Hub/profilarr.git
synced 2026-01-22 19:01:02 +01:00
- improve custom formats - general tab for name, description tags - improved conditions tab - add testing system - add app footer - remove redundant data page headers
36 lines
1.1 KiB
JavaScript
36 lines
1.1 KiB
JavaScript
import {defineConfig} from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import path from 'path';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
react({
|
|
include: ['**/*.jsx', '**/*.svg']
|
|
})
|
|
],
|
|
server: {
|
|
host: '0.0.0.0', // Allow external access
|
|
port: 3000,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://backend:5000',
|
|
changeOrigin: true,
|
|
rewrite: path => path.replace(/^\/api/, '')
|
|
}
|
|
}
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
'@components': path.resolve(__dirname, './src/components'),
|
|
'@hooks': path.resolve(__dirname, './src/hooks'),
|
|
'@constants': path.resolve(__dirname, './src/constants'),
|
|
'@ui': path.resolve(__dirname, './src/components/ui'),
|
|
'@assets': path.resolve(__dirname, './src/assets'),
|
|
'@logo': path.resolve(__dirname, './src/assets/logo'),
|
|
'@utils': path.resolve(__dirname, './src/utils'),
|
|
'@api': path.resolve(__dirname, './src/api')
|
|
}
|
|
}
|
|
});
|