We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59bfda4 commit 7584da0Copy full SHA for 7584da0
1 file changed
example/vite.config.ts
@@ -4,8 +4,10 @@ import { resolve } from "path";
4
5
const repoBase = "react-flow";
6
7
+const isCustomDomain = process.env.CUSTOM_DOMAIN === "true";
8
+
9
export default defineConfig({
- base: process.env.GITHUB_PAGES === "true" ? `/${repoBase}/` : "/",
10
+ base: isCustomDomain ? "/" : process.env.GITHUB_PAGES === "true" ? `/${repoBase}/` : "/",
11
plugins: [react()],
12
build: {
13
rollupOptions: {
0 commit comments