Files
profilarr/frontend/vite.config.js
Sam Chau 6ff0e79a28 feature: regex patterns (#10)
- add new regex patterns, matched using PCRE2, with case insensitivity
- name, description, pattern, tags
- add unit tests, attempt to highlight matches
2025-02-05 16:09:59 +10:30

35 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'),
'@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')
}
}
});