New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf: merge middleware, api layers into rsc layer #65660
Conversation
3c1ef84
to
b218bf2
Compare
Failing test suitesCommit: 1b1b083
Expand output● build trace with extra entries › production mode › should build and trace correctly
Read more about building and testing Next.js in contributing.md.
Expand output● app-dynamic-error › production mode › throws an error when prerendering a page with config dynamic error
Read more about building and testing Next.js in contributing.md.
Expand output● app dir - css with pageextensions › css support with pageextensions › page in app directory with pageextention, css should work › should support global css inside layout
Read more about building and testing Next.js in contributing.md.
Expand output● app dir - with output export and custom distDir (next dev) › should render properly
Read more about building and testing Next.js in contributing.md.
Expand output● async-component-preload › should handle redirect in an async page
Read more about building and testing Next.js in contributing.md.
Expand output● _allow-underscored-root-directory › should not serve app path with underscore
● _allow-underscored-root-directory › should pages path with a underscore at the root
● _allow-underscored-root-directory › should serve app path with %5F
Read more about building and testing Next.js in contributing.md.
Expand output● app dir - draft mode › in nodejs runtime › should use initial rand when draft mode is disabled on /index
● app dir - draft mode › in nodejs runtime › should use initial rand when draft mode is disabled on /with-cookies
● app dir - draft mode › in nodejs runtime › should not generate rand when draft mode disabled during next start
● app dir - draft mode › in nodejs runtime › should not read other cookies when draft mode disabled during next start
● app dir - draft mode › in nodejs runtime › should be disabled from api route handler
● app dir - draft mode › in nodejs runtime › should have set-cookie header on enable
● app dir - draft mode › in nodejs runtime › should have set-cookie header with redirect location
● app dir - draft mode › in nodejs runtime › should genenerate rand when draft mode enabled
● app dir - draft mode › in nodejs runtime › should read other cookies when draft mode enabled
● app dir - draft mode › in nodejs runtime › should be enabled from api route handler when draft mode enabled
● app dir - draft mode › in nodejs runtime › should not perform full page navigation on router.refresh()
● app dir - draft mode › in edge runtime › should use initial rand when draft mode is disabled on /with-edge/index
● app dir - draft mode › in edge runtime › should use initial rand when draft mode is disabled on /with-edge/with-cookies
● app dir - draft mode › in edge runtime › should not read other cookies when draft mode disabled during next start
● app dir - draft mode › in edge runtime › should be disabled from api route handler
● app dir - draft mode › in edge runtime › should have set-cookie header on enable
● app dir - draft mode › in edge runtime › should have set-cookie header with redirect location
● app dir - draft mode › in edge runtime › should genenerate rand when draft mode enabled
● app dir - draft mode › in edge runtime › should read other cookies when draft mode enabled
● app dir - draft mode › in edge runtime › should be enabled from api route handler when draft mode enabled
● app dir - draft mode › in edge runtime › should not perform full page navigation on router.refresh()
Read more about building and testing Next.js in contributing.md.
Expand output● custom-app-server-action-redirect › redirects with basepath properly when server action handler uses
● custom-app-server-action-redirect › redirects with proper cookies set from both redirect response and post respose
Read more about building and testing Next.js in contributing.md.
Expand output● referencing a client component in an app route › responds without error
Read more about building and testing Next.js in contributing.md.
Expand output● app dir - with output export (next start) › production mode › should error during next start with output export
● app dir - with output export (next start) › production mode › should warn during next start with output standalone
Read more about building and testing Next.js in contributing.md.
Expand output● app-fetch-deduping › during next dev › should dedupe requests called from the same component
● app-fetch-deduping › during next dev › should dedupe pending revalidation requests
Read more about building and testing Next.js in contributing.md.
Expand output● app dir - basic › should provide query for getStaticProps page correctly
● app dir - basic › should work for catch-all edge page
● app dir - basic › should return normalized dynamic route params for catch-all edge page
● app dir - basic › should have correct searchParams and params (server)
● app dir - basic › should have correct searchParams and params (client)
● app dir - basic › should successfully detect app route during prefetch
● app dir - basic › should encode chunk path correctly
● app dir - basic › should match redirects in pages correctly $path
● app dir - basic › should match redirects in pages correctly $path
● app dir - basic › should match redirects in pages correctly $path
● app dir - basic › should match redirects in pages correctly $path
● app dir - basic › should match redirects in pages correctly $path
● app dir - basic › should not apply client router filter on shallow
● app dir - basic › should not share edge workers
● app dir - basic › should generate build traces correctly
● app dir - basic › should use text/x-component for flight
● app dir - basic › should use text/x-component for flight with edge runtime
● app dir - basic › should return the
● app dir - basic › should return the
● app dir - basic › should pass props from getServerSideProps in root layout
● app dir - basic › should serve from pages
● app dir - basic › should serve dynamic route from pages
● app dir - basic › should serve from public
● app dir - basic › should serve from app
● app dir - basic › should ensure the suffix is at the end of the stream
● app dir - basic › should serve /index as separate page
● app dir - basic › should serve polyfills for browsers that do not support modules
● app dir - basic › should handle css imports in next/dynamic correctly
● app dir - basic › should include layouts when no direct parent layout
● app dir - basic › should not include parent when not in parent directory with route in directory
● app dir - basic › should use new root layout when provided
● app dir - basic › should not create new root layout when nested (optional)
● app dir - basic › should include parent document when no direct parent layout
● app dir - basic › should not include parent when not in parent directory
● app dir - basic › should serve nested parent
● app dir - basic › should serve dynamic parameter
● app dir - basic › should serve page as a segment name correctly
● app dir - basic › should include document html and body
● app dir - basic › should not serve when layout is provided but no folder index
● app dir - basic › should match partial parameters
● app dir - basic › rewrites › should support rewrites on initial load
● app dir - basic › rewrites › should support rewrites on client-side navigation from pages to app with existing pages path
● app dir - basic › rewrites › should support rewrites on client-side navigation
● app dir - basic › should not rerender layout when navigating between routes in the same layout
● app dir - basic › should handle hash in initial url
● app dir - basic › › should hard push
● app dir - basic › › should hard replace
● app dir - basic › › should soft push
● app dir - basic › › should soft replace
● app dir - basic › › should be soft for back navigation
● app dir - basic › › should be soft for forward navigation
● app dir - basic › › should allow linking from app page to pages page
● app dir - basic › › should navigate to pages dynamic route from pages page if it overlaps with an app page
● app dir - basic › › should push to external url
● app dir - basic › › should replace to external url
● app dir - basic › server components › should not serve .server.js as a path
● app dir - basic › server components › should not serve .client.js as a path
● app dir - basic › server components › should serve shared component
● app dir - basic › server components › dynamic routes › should only pass params that apply to the layout
● app dir - basic › server components › catch-all routes › should handle optional segments
● app dir - basic › server components › catch-all routes › should handle optional segments root
● app dir - basic › server components › catch-all routes › should handle optional catch-all segments link
● app dir - basic › server components › catch-all routes › should handle required segments
● app dir - basic › server components › catch-all routes › should handle required segments root as not found
● app dir - basic › server components › catch-all routes › should handle catch-all segments link
● app dir - basic › server components › should serve client component › should serve server-side
● app dir - basic › server components › should serve client component › should serve client-side
● app dir - basic › server components › should include client component layout with server component route › should include it server-side
● app dir - basic › server components › should include client component layout with server component route › should include it client-side
● app dir - basic › server components › Loading › should render loading.js in initial html for slow page
● app dir - basic › server components › Loading › should render loading.js in browser for slow page
● app dir - basic › server components › Loading › should render loading.js in initial html for slow layout
● app dir - basic › server components › Loading › should render loading.js in browser for slow layout
● app dir - basic › server components › Loading › should render loading.js in initial html for slow layout and page
● app dir - basic › server components › Loading › should render loading.js in browser for slow layout and page
● app dir - basic › server components › middleware › should strip internal query parameters from requests to middleware for rewrite
● app dir - basic › server components › middleware › should strip internal query parameters from requests to middleware for redirect
● app dir - basic › server components › next/router › should support router.back and router.forward
● app dir - basic › server components › client components › should have consistent query and params handling
● app dir - basic › searchParams prop › client component › should have the correct search params
● app dir - basic › searchParams prop › client component › should have the correct search params on rewrite
● app dir - basic › searchParams prop › client component › should have the correct search params on middleware rewrite
● app dir - basic › searchParams prop › server component › should have the correct search params
● app dir - basic › searchParams prop › server component › should have the correct search params on rewrite
● app dir - basic › searchParams prop › server component › should have the correct search params on middleware rewrite
● app dir - basic › template component › should render the template that holds state in a client component and reset on navigation
● app dir - basic › template component › should render the template that is a server component and rerender on navigation
● app dir - basic › known bugs › should support React cache › server component
● app dir - basic › known bugs › should support React cache › server component client-navigation
● app dir - basic › known bugs › should support React cache › client component
● app dir - basic › known bugs › should support React cache › client component client-navigation
● app dir - basic › known bugs › should support React cache › middleware overriding headers
● app dir - basic › known bugs › should support React fetch instrumentation › server component
● app dir - basic › known bugs › should support React fetch instrumentation › server component client-navigation
● app dir - basic › known bugs › should support React fetch instrumentation › client component
● app dir - basic › known bugs › should support React fetch instrumentation › client component client-navigation
● app dir - basic › known bugs › should not share flight data between requests
● app dir - basic › known bugs › should handle router.refresh without resetting state
● app dir - basic › known bugs › should handle as on next/link
● app dir - basic › known bugs › should handle next/link back to initially loaded page
● app dir - basic › known bugs › should not do additional pushState when already on the page
● app dir - basic › next/script › should support next/script and render in correct order
● app dir - basic › next/script › should pass on extra props for beforeInteractive scripts with a src prop
● app dir - basic › next/script › should pass on extra props for beforeInteractive scripts without a src prop
● app dir - basic › next/script › should insert preload tags for beforeInteractive and afterInteractive scripts
● app dir - basic › next/script › should load stylesheets for next/scripts
● app dir - basic › next/script › should pass
● app dir - basic › next/script › should pass nonce when using next/font
● app dir - basic › data fetch with response over 16KB with chunked encoding › should load page when fetching a large amount of data
● app dir - basic › bootstrap scripts › should only bootstrap with one script, prinitializing the rest
● app dir - basic › bootstrap scripts › should successfully bootstrap even when using CSP
Read more about building and testing Next.js in contributing.md.
Expand output● app-dir - missing required html tags › should show error overlay
● app-dir - missing required html tags › should hmr when you fix the error
● app-dir - missing required html tags › should hmr when you fix the error
Read more about building and testing Next.js in contributing.md.
Expand output● hmr-deleted-page › should not show errors for a deleted page
Read more about building and testing Next.js in contributing.md.
Expand output● App assetPrefix config › should render correctly with assetPrefix: "/"
Read more about building and testing Next.js in contributing.md.
Expand output● app dir - with output export - dynamic missing gsp dev › development mode › should error when dynamic route is missing generateStaticParams
Read more about building and testing Next.js in contributing.md.
Expand output● app-dir-hmr › filesystem changes › should not continously poll when hitting a not found page
● app-dir-hmr › filesystem changes › should not break when renaming a folder
● app-dir-hmr › filesystem changes › should update server components pages when env files is changed (nodejs)
Read more about building and testing Next.js in contributing.md.
Expand output● basic app-dir tests › should reload app pages without error
Read more about building and testing Next.js in contributing.md.
Expand output● ReactRefreshModule app › should allow any variable names
Read more about building and testing Next.js in contributing.md.
Expand output● app-dir - esm js extension › should be able to render nextjs api in app router
● app-dir - esm js extension › should be able to use nextjs api in pages router
● app-dir - esm js extension › should support next/og image
Read more about building and testing Next.js in contributing.md.
Expand output● Middleware usage of dynamic code evaluation › development mode › shows a warning when running code with eval
● Middleware usage of dynamic code evaluation › development mode › shows a warning when running WebAssembly.compile
● Middleware usage of dynamic code evaluation › development mode › shows a warning when running WebAssembly.instantiate with a buffer parameter
● Middleware usage of dynamic code evaluation › production mode › should have middleware warning during build
● Edge route usage of dynamic code evaluation › development mode › shows a warning when running code with eval
● Edge route usage of dynamic code evaluation › development mode › shows a warning when running WebAssembly.compile
● Edge route usage of dynamic code evaluation › development mode › shows a warning when running WebAssembly.instantiate with a buffer parameter
● Edge route usage of dynamic code evaluation › production mode › should have middleware warning during build
Read more about building and testing Next.js in contributing.md.
Expand output● tsconfig.json verifier › Creates a default tsconfig.json when one is missing
● tsconfig.json verifier › Works with an empty tsconfig.json (docs)
● tsconfig.json verifier › Updates an existing tsconfig.json without losing comments
● tsconfig.json verifier › allows you to set commonjs module mode
● tsconfig.json verifier › allows you to set es2020 module mode
● tsconfig.json verifier › allows you to set node16 moduleResolution mode
● tsconfig.json verifier › allows you to set bundler moduleResolution mode
● tsconfig.json verifier › allows you to set target mode
● tsconfig.json verifier › allows you to set node16 module mode
● tsconfig.json verifier › allows you to set verbatimModuleSyntax true without adding isolatedModules
● tsconfig.json verifier › allows you to set verbatimModuleSyntax true via extends without adding isolatedModules
● tsconfig.json verifier › allows you to extend another configuration file
● tsconfig.json verifier › creates compilerOptions when you extend another config
Read more about building and testing Next.js in contributing.md.
Expand output● app dir - with output export - dynamic api route prod › production mode › should work in prod with dynamicApiRoute undefined
● app dir - with output export - dynamic api route prod › production mode › should work in prod with dynamicApiRoute 'error'
● app dir - with output export - dynamic api route prod › production mode › should work in prod with dynamicApiRoute 'force-static'
● app dir - with output export - dynamic api route prod › production mode › should work in prod with dynamicApiRoute 'force-dynamic'
Read more about building and testing Next.js in contributing.md.
Expand output● module layer › with server-only in server targets › should render routes marked with restriction marks without errors /api/mixed
Read more about building and testing Next.js in contributing.md.
Expand output● Edge runtime code with imports › Edge API statically importing node.js module › throws unsupported module error in dev at runtime and highlights the faulty line
● Edge runtime code with imports › Edge API statically importing node.js module › production mode › throws unsupported module error in production at runtime and prints error on logs
● Edge runtime code with imports › Middleware statically importing node.js module › throws unsupported module error in dev at runtime and highlights the faulty line
● Edge runtime code with imports › Middleware statically importing node.js module › production mode › throws unsupported module error in production at runtime and prints error on logs
● Edge runtime code with imports › Edge API importing unused node.js module › does not throw in dev at runtime
● Edge runtime code with imports › Edge API importing unused node.js module › production mode › does not throw in production at runtime
● Edge runtime code with imports › Middleware importing unused node.js module › does not throw in dev at runtime
● Edge runtime code with imports › Middleware importing unused node.js module › production mode › does not throw in production at runtime
Read more about building and testing Next.js in contributing.md.
Expand output● Middleware Runtime › with i18n › should only contain middleware route in dev middleware manifest
Read more about building and testing Next.js in contributing.md. |
b218bf2
to
05f4675
Compare
05f4675
to
1b1b083
Compare
No description provided.