fix: dev server intercepts Vite URLs when basePath is configured (#3730)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Bartek Iwańczuk
2026-03-29 19:42:36 +00:00
committed by GitHub
co-authored by Claude Opus 4.6
parent 14cff12fcc
commit e0ee53d458
4 changed files with 40 additions and 1 deletions
+8
View File
@@ -0,0 +1,8 @@
import { App, staticFiles } from "@fresh/core";
export const app = new App({ basePath: "/ui" })
.use(staticFiles())
.get("/", () =>
new Response("<h1>ok</h1>", {
headers: { "Content-Type": "text/html" },
}));
@@ -0,0 +1,7 @@
import { defineConfig } from "vite";
import { fresh } from "@fresh/plugin-vite";
export default defineConfig({
base: "/ui/",
plugins: [fresh()],
});