Skip to content

Commit

Permalink
fix(build): disable validation for rewrite compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Jun 14, 2023
1 parent f831767 commit 69b2625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/plugins/rewritesPlugin.ts
Expand Up @@ -7,7 +7,7 @@ export function resolveRewrites(
userRewrites: UserConfig['rewrites']
) {
const rewriteRules = Object.entries(userRewrites || {}).map(([from, to]) => ({
toPath: compile(to),
toPath: compile(to, { validate: false }),
matchUrl: match(from.startsWith('^') ? new RegExp(from) : from)
}))

Expand Down

0 comments on commit 69b2625

Please sign in to comment.