mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-07 21:07:46 +00:00
[node] Added middlewareRawSrc to BOA route config (#9435)
Blocked by https://github.com/vercel/vercel/pull/9564 The build output's route configuration contains a compiled `src` from the list of `matchers` in middleware config, however we need to also save the original inputs so that we can render something meaningful in the web UI. The new prop added to the route is called `middlewareRawSrc` of type `string[]`. This PR depends on https://github.com/vercel/api/pull/17231. Linear: https://linear.app/vercel/issue/VCCLI-411/display-uncompressed-edge-middleware-matcher-show-the-list-of-matches
This commit is contained in:
@@ -484,6 +484,7 @@ describe('build', () => {
|
||||
{
|
||||
src: '^/.*$',
|
||||
middlewarePath: 'middleware',
|
||||
middlewareRawSrc: [],
|
||||
override: true,
|
||||
continue: true,
|
||||
},
|
||||
@@ -548,6 +549,7 @@ describe('build', () => {
|
||||
{
|
||||
src: '^/.*$',
|
||||
middlewarePath: 'middleware',
|
||||
middlewareRawSrc: [],
|
||||
override: true,
|
||||
continue: true,
|
||||
},
|
||||
@@ -612,6 +614,7 @@ describe('build', () => {
|
||||
{
|
||||
src: '^\\/about(?:\\/((?:[^\\/#\\?]+?)(?:\\/(?:[^\\/#\\?]+?))*))?[\\/#\\?]?$|^\\/dashboard(?:\\/((?:[^\\/#\\?]+?)(?:\\/(?:[^\\/#\\?]+?))*))?[\\/#\\?]?$',
|
||||
middlewarePath: 'middleware',
|
||||
middlewareRawSrc: ['/about/:path*', '/dashboard/:path*'],
|
||||
override: true,
|
||||
continue: true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user