Merge origin/develop into feature/a-card-operations
This commit is contained in:
+11
-3
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user