All checks were successful
CI / build (push) Successful in 2m31s
登录页切换为官方 input-group 组合并将全站提示从 antd message 统一为 sonner toast,确保通知位置与风格一致。同时补齐相关 shadcn CLI 生成组件及构建配置更新。 Co-authored-by: Cursor <cursoragent@cursor.com>
32 lines
636 B
TypeScript
32 lines
636 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import Pages from "vite-plugin-pages";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import path from "node:path";
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
plugins: [
|
|
react(),
|
|
Pages({
|
|
dirs: "src/pages",
|
|
extensions: ["tsx"],
|
|
}),
|
|
tailwindcss(),
|
|
],
|
|
server: {
|
|
// 允许局域网通过 IP 访问开发服务
|
|
host: "0.0.0.0",
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://localhost:3000",
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
});
|