0f48d7abda
Allow store contactPhone as landline, show pending package audit badge, and split live vs pending packages in HQ review. Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
656 B
TypeScript
22 lines
656 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import path from 'path';
|
|
|
|
export default defineConfig({
|
|
// 独立域名 partner.dukanghaoke.com 部署在根路径;旧的子路径部署可显式覆盖。
|
|
base: process.env.VITE_PUBLIC_BASE ?? '/',
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
'@dukang/shared-ui': path.resolve(__dirname, '../../packages/shared-ui/src'),
|
|
'@dukang/domain': path.resolve(__dirname, '../../packages/domain/src/index.ts'),
|
|
},
|
|
},
|
|
server: {
|
|
host: true,
|
|
port: 5175,
|
|
proxy: {
|
|
'/api': process.env.VITE_API_TARGET ?? 'http://localhost:3010',
|
|
},
|
|
},
|
|
}); |