修正 admin/agent/player 路由与 agent App.vue 的 import 路径,三端 Vite 共用 packages/shared/public 下的 logo 与 favicon。 Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
340 B
TypeScript
13 lines
340 B
TypeScript
import { defineConfig } from 'vite';
|
|
import vue from '@vitejs/plugin-vue';
|
|
import { resolve } from 'path';
|
|
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
publicDir: resolve(__dirname, '../../packages/shared/public'),
|
|
server: {
|
|
port: 5174,
|
|
proxy: { '/api': { target: 'http://localhost:3000', changeOrigin: true } },
|
|
},
|
|
});
|