32 lines
700 B
TypeScript
32 lines
700 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import path from 'path';
|
|
import { versionPlugin } from '@lilith/vite-version-plugin';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
versionPlugin({ appName: 'Quinn SSO', versionFile: path.resolve(__dirname, '../../../../VERSION.txt') }),
|
|
],
|
|
server: {
|
|
port: 5125,
|
|
host: '0.0.0.0',
|
|
strictPort: true,
|
|
allowedHosts: ['.lan'],
|
|
proxy: {
|
|
'/auth': {
|
|
target: 'http://localhost:3025',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
build: {
|
|
outDir: 'dist',
|
|
sourcemap: true,
|
|
},
|
|
});
|