fix(build): disable validation for rewrite compiling

pull/2465/merge
Divyansh Singh 1 year ago committed by GitHub
parent f831767764
commit 69b2625623
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7,7 +7,7 @@ export function resolveRewrites(
userRewrites: UserConfig['rewrites'] userRewrites: UserConfig['rewrites']
) { ) {
const rewriteRules = Object.entries(userRewrites || {}).map(([from, to]) => ({ const rewriteRules = Object.entries(userRewrites || {}).map(([from, to]) => ({
toPath: compile(to), toPath: compile(to, { validate: false }),
matchUrl: match(from.startsWith('^') ? new RegExp(from) : from) matchUrl: match(from.startsWith('^') ? new RegExp(from) : from)
})) }))

Loading…
Cancel
Save