We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9eafac commit f831767Copy full SHA for f831767
src/node/plugins/rewritesPlugin.ts
@@ -8,7 +8,7 @@ export function resolveRewrites(
8
) {
9
const rewriteRules = Object.entries(userRewrites || {}).map(([from, to]) => ({
10
toPath: compile(to),
11
- matchUrl: match(from)
+ matchUrl: match(from.startsWith('^') ? new RegExp(from) : from)
12
}))
13
14
const pageToRewrite: Record<string, string> = {}
0 commit comments