Files
Lucky_Wheel/apps/admin/vite.config.ts
T

27 lines
587 B
TypeScript
Raw Normal View History

2026-09-10 01:58:29 +03:30
import vue from '@vitejs/plugin-vue';
import path from 'path';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'@lucky-wheel/shared-types': path.resolve(__dirname, '../../packages/shared-types/src/index.ts'),
},
},
server: {
port: 5173,
proxy: {
'/api': {
target: 'http://localhost:3000',
changeOrigin: true,
},
'/uploads': {
target: 'http://localhost:3000',
changeOrigin: true,
},
},
},
});