fix: basePath not working in dev server (#3202)
Fixes https://github.com/denoland/fresh/issues/3201
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user