sync update from LAN repo (source ji @ 85078a31)
This commit is contained in:
1 parent
5d6627af50
commit
e602d88695
864 files changed
+99150
-6346
No files matched your search
@@ -0,0 +1,24 @@
|
||||
import { fileURLToPath, URL } from "node:url";
|
||||
|
||||
import react from "@vitejs/plugin-react";
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
// 站点会被静态托管在嵌套路径下(/api/public/site-preview/{token}/),
|
||||
// 因此必须用相对基准 base: "./",让 assets 引用随宿主路径自适应。
|
||||
export default defineConfig({
|
||||
base: "./",
|
||||
plugins: [react()],
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
||||
},
|
||||
},
|
||||
build: {
|
||||
// 兼容 chrome100 一类的旧内核浏览器(与 DeerFlow 前端构建基线一致)
|
||||
target: "es2018",
|
||||
outDir: "dist",
|
||||
emptyOutDir: true,
|
||||
// 生成的站点普遍很小,关闭分块警告
|
||||
chunkSizeWarningLimit: 4096,
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user