Use a relative base so the build works at any mount point
1 changed file+3−3
vite.config.tsmodified+3−3View file
@@ -1,10 +1,10 @@
11 import react from "@vitejs/plugin-react";
22 import { defineConfig } from "vite";
33
4-export default defineConfig(({ command }) => ({
4+export default defineConfig(() => ({
55 plugins: [react()],
6- // served at https://concept-collection.github.io/stan-remote-sampling/
7- base: command === "build" ? "/stan-remote-sampling/" : "/",
6+ // Relative base, so the build works wherever it is mounted
7+ base: "./",
88 server: {
99 port: 3000,
1010 },