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:
co-authored by
Claude Opus 4.6
parent
14cff12fcc
commit
e0ee53d458
@@ -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()],
|
||||
});
|
||||
Reference in New Issue
Block a user