Files
MemShellParty/web/vite.config.ts
T
ReaJason 17c171f1cd
Dev Deploy / Build Jar (ubuntu-latest) (push) Has been cancelled
Dev Deploy / Build Jar (windows-latest) (push) Has been cancelled
Dev Deploy / Docker Push (push) Has been cancelled
Dev Deploy / Deploy to Maven Central (push) Has been cancelled
Dev Deploy / Deploy to Northflank (push) Has been cancelled
ci: test build on windows
2025-12-24 23:37:49 +08:00

34 lines
862 B
TypeScript

import path from "node:path";
import { env } from "node:process";
import { reactRouter } from "@react-router/dev/vite";
import tailwindcss from "@tailwindcss/vite";
import mdx from "fumadocs-mdx/vite";
import { defineConfig } from "vite";
import devtoolsJson from "vite-plugin-devtools-json";
import tsconfigPaths from "vite-tsconfig-paths";
import * as MdxConfig from "./source.config";
const isDev = env.NODE_ENV === "development";
export default defineConfig({
base: isDev ? "/" : `${env.VITE_APP_API_URL}/`,
plugins: [
mdx(MdxConfig),
tailwindcss(),
reactRouter(),
devtoolsJson(),
tsconfigPaths({
root: __dirname,
}),
],
resolve: {
alias: {
"@": path.resolve(__dirname, "./app"),
...(!isDev
? {
"react-dom/server": "react-dom/server.node",
}
: {}),
},
},
});