rsnext/packages/next/server
Jiachi Liu 582cb3766d
Fix: only contain middleware in dev middleware manifest (#39217)
x-ref #39199

The change in #39199 isn't correct. Middleware manifest should only contain middleware route, so that when router navigates, it only try to apply middleware instead of checking all edge routes. This PR also changes the middleware manifest global value from array to object for easier access

## Bug

- [ ] Related issues linked using `fixes #number`
- [x] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`
2022-08-01 13:23:24 +00:00
..
api-utils Update to use HEAD request for On-Demand ISR (#39038) 2022-07-26 15:18:38 -05:00
base-http Allow reading request bodies in middlewares (#34294) (#34519) 2022-02-18 19:43:43 +00:00
dev Fix: only contain middleware in dev middleware manifest (#39217) 2022-08-01 13:23:24 +00:00
lib Fix squoosh image optimization for Node.js 18 (#38833) 2022-07-20 12:24:50 -04:00
send-payload refactor: rewrite etag (#38568) 2022-07-18 09:20:44 +00:00
web fix: print Request & Response properties (#38903) 2022-07-27 09:16:16 -05:00
accept-header.ts Implement Middleware RFC (#30081) 2021-10-20 17:52:11 +00:00
app-render.tsx Add additional comments for reducer/cachenode (#39065) 2022-07-27 12:43:43 +00:00
base-server.ts refactor: simplify middleware execution (#39192) 2022-07-30 16:45:58 -05:00
body-streams.ts Fix unhandled rejections with edge runtime (#39091) 2022-07-28 07:50:51 +00:00
config-schema.ts Add exportPathMap config type/schema field (#39171) 2022-07-29 12:59:00 -05:00
config-shared.ts Add exportPathMap config type/schema field (#39171) 2022-07-29 12:59:00 -05:00
config-utils.ts Remove webpack 4 support (#29660) 2021-10-06 17:40:01 +02:00
config.ts Fix error message typos (#38894) 2022-07-22 01:58:44 +00:00
crypto-utils.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
font-utils.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
get-page-files.ts Add initial handling for routing tests (#36635) 2022-05-03 10:37:23 +00:00
get-route-from-entrypoint.ts Ensure page.server.js matches correctly (#38236) 2022-07-01 12:15:27 -05:00
htmlescape.ts Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
image-optimizer.ts Correctly check if width is lte 0 in Image Optimization API (#38226) 2022-07-06 14:09:29 +00:00
load-components.ts Enable css import in rsc server side (#38418) 2022-07-11 17:23:21 +02:00
next-server.ts refactor: simplify middleware execution (#39192) 2022-07-30 16:45:58 -05:00
next.ts Drop experimental.reactRoot in favor of auto detection (#37956) 2022-06-23 18:33:16 +02:00
node-polyfill-fetch.js Pre-compile more dependencies (#32742) 2022-01-17 15:17:22 +00:00
node-polyfill-web-streams.js Update Edge Runtime (#38862) 2022-07-21 18:29:19 +00:00
node-web-streams-helper.ts chore: Clean up imports and unused code (#39044) 2022-07-26 21:41:59 +00:00
optimize-amp.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
post-process.ts Optimize Edge SSR bundle size (#38570) 2022-07-12 23:39:18 +00:00
render-result.ts Add unstable_useFlushEffects hook (#34117) 2022-02-18 00:18:28 +00:00
render.tsx Remove RSC rendering from render (#39045) 2022-07-27 22:11:02 +00:00
request-meta.ts Update Edge Runtime (#38862) 2022-07-21 18:29:19 +00:00
require.ts Add support for optional catchall with new router (#38444) 2022-07-08 10:29:41 +00:00
response-cache.ts Update to not trigger revalidation during prefetch (#37201) 2022-05-29 23:05:23 +00:00
router.ts chore: Clean up imports and unused code (#39044) 2022-07-26 21:41:59 +00:00
serve-static.ts Add support for AVIF to next/image (#29683) 2021-10-11 23:17:47 +00:00
server-route-utils.ts Refactor server routing (#37725) 2022-06-16 21:43:01 +00:00
utils.ts chore: Clean up imports and unused code (#39044) 2022-07-26 21:41:59 +00:00
web-server.ts fix: Impl attachRequestMeta in base server to handle meta differently in edge and node servers (#38932) 2022-07-22 18:42:35 +00:00