From 69b2625623292591207b6b591f6b39019a054a43 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Thu, 15 Jun 2023 00:07:11 +0530 Subject: [PATCH] fix(build): disable validation for rewrite compiling --- src/node/plugins/rewritesPlugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/plugins/rewritesPlugin.ts b/src/node/plugins/rewritesPlugin.ts index ebda4d4f..2388a70a 100644 --- a/src/node/plugins/rewritesPlugin.ts +++ b/src/node/plugins/rewritesPlugin.ts @@ -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) }))