fix: basePath not working in dev server (#3202)

Fixes https://github.com/denoland/fresh/issues/3201
This commit is contained in:
Marvin Hagemeister
2025-08-07 12:38:37 +02:00
committed by GitHub
parent 073bacfbbb
commit 3d1eb2c346
5 changed files with 64 additions and 12 deletions
+1 -1
View File
@@ -330,7 +330,7 @@ export class App<State> {
if (cmd.type !== CommandType.App && cmd.type !== CommandType.NotFound) {
const clone = {
...cmd,
pattern: mergePath(path, cmd.pattern),
pattern: mergePath(path, cmd.pattern, true),
includeLastSegment: cmd.pattern === "/" || cmd.includeLastSegment,
};
this.#commands.push(clone);