Merge origin/develop into feature/a-card-operations

This commit is contained in:
郑龙捷
2026-09-02 10:33:00 +08:00
73 changed files with 7177 additions and 3280 deletions
+11 -3
View File
@@ -1,15 +1,23 @@
import { reactRouter } from "@react-router/dev/vite";
import { fileViewerRenderers } from "@file-viewer/vite-plugin";
import tailwindcss from "@tailwindcss/vite";
import { defineConfig, loadEnv } from "vite";
import path from "node:path";
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, __dirname, "");
const gatewayUrl = env.VITE_GATEWAY_URL || "http://127.0.0.1:8890";
const gatewayUrl = env.VITE_GATEWAY_URL || process.env.VITE_GATEWAY_URL || "http://127.0.0.1:8890";
return {
base: '/',
plugins: [reactRouter(), tailwindcss()],
base: "/",
plugins: [
reactRouter(),
tailwindcss(),
fileViewerRenderers({
preset: "office",
copyAssets: { mode: "both", baseDir: "file-viewer" },
}),
],
resolve: {
alias: {
"~": path.resolve(__dirname, "./app"),