34 lines
1.0 KiB
TypeScript
34 lines
1.0 KiB
TypeScript
import path from 'path'
|
|
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
import { TanStackRouterVite } from '@tanstack/router-vite-plugin'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
TanStackRouterVite({ routesDirectory: './src/routes' }),
|
|
react(),
|
|
tailwindcss(),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
'@authportal/shared': path.resolve(__dirname, '../../packages/shared/src/index.ts'),
|
|
'@authportal/ui/components': path.resolve(__dirname, '../../packages/ui/src/components'),
|
|
'@authportal/ui/hooks': path.resolve(__dirname, '../../packages/ui/src/hooks'),
|
|
'@authportal/ui/lib': path.resolve(__dirname, '../../packages/ui/src/lib'),
|
|
},
|
|
},
|
|
server: {
|
|
port: 5175,
|
|
fs: {
|
|
allow: [path.resolve(__dirname, '../..')],
|
|
},
|
|
proxy: {
|
|
'/api': 'http://localhost:8080',
|
|
'/health': 'http://localhost:8080',
|
|
'/ready': 'http://localhost:8080',
|
|
},
|
|
},
|
|
})
|