rsnext/test/production
Jiachi Liu 73e4895dfa
Use addDependency to track metadata route file changes (#66714)
### What

Use `addDependency` to track the file path passed to
`next-metadata-route-loader`

NOTE: We cannot apply the `next-metadata-route-loader` directly to the
metatda convention source files, since the json file could be processed
by json loader (Related previous fix #62615)

### Why

Previously when we passed down the file path as argument to the loader,
which sort of breaking the caching of webpack as the actual resource
path is string, it's not tracked as a dependency. This change fixed the
bad caching issue of static metadata routes. Based on the above reason
we use `addDependency` here to track the dependency change

Closes NEXT-3521
Closes #65755
2024-06-11 17:19:23 +02:00
..
allow-development-build add experimental flag to allow forcing NODE_ENV=development in builds (#65463) 2024-05-07 11:35:13 -07:00
app-dir Use addDependency to track metadata route file changes (#66714) 2024-06-11 17:19:23 +02:00
app-dir-edge-runtime-with-wasm Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
app-dir-hide-suppressed-error-during-next-export Change default of prerenderEarlyExit to true (#65830) 2024-05-20 12:51:01 -07:00
app-dir-prefetch-non-iso-url Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
app-dir-prevent-304-caching Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
bfcache-routing Improve handling of failed nextBuild() calls in test suite (#63717) 2024-03-27 19:29:16 +01:00
build-spinners Use consistent name for App Router tests (#56352) 2023-10-06 11:06:06 +02:00
ci-missing-typescript-deps Revert "Don't fail the build if @types/ packages appear to be missing" (#66130) 2024-05-23 09:01:10 -05:00
custom-error-500 Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
custom-server Update React from f994737d14 to 1df34bdf62 (19.0.0-rc.0) (#66533) 2024-06-10 12:06:38 +00:00
dependencies-can-use-env-vars-in-middlewares Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
deployment-id-handling Improve initial setup with new App Router TypeScript project (#64826) 2024-04-26 18:19:50 +02:00
deterministic-build Re-land build(edge): extract buildId into environment (#65426) 2024-05-08 10:40:15 +02:00
disable-fallback-polyfills Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
edge-config-validations Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
edge-dynamic-code-eval fix(log): improve error when dynamic code eval is disallowed (#62999) 2024-03-12 23:31:32 +01:00
edge-runtime-is-addressable Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
emit-decorator-metadata Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
enoent-during-require Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
error-hydration Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
escheck-output Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
eslint-plugin-deps Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
export Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
exported-runtimes-value-validation Revert "refactor(analysis): rust based page-static-info, deprecate js parse interface in next-swc" (#62838) 2024-03-04 21:43:56 +00:00
fallback-export-error Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
fatal-render-errror Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
generate-middleware-source-maps Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
graceful-shutdown test: fix flaky tests and disabled constant failing ones (#65822) 2024-05-16 15:05:28 +02:00
handle-already-sent-response Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
ipc-forbidden-headers Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
jest Support React 19 in App and Pages router (#65058) 2024-05-07 18:18:32 +02:00
middleware-typescript Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
next-font Remove @next/font resolving for font loaders (#65601) 2024-05-10 20:12:03 +02:00
pages-dir/production Fix broken BrowserInterface type (#66461) 2024-06-03 12:56:49 +00:00
pnpm-support Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
postcss-plugin-config-as-string Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
prerender-prefetch Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
reading-request-body-in-middleware Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
sharp-basic Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
standalone-mode chore(test): add types to tests (#66724) 2024-06-10 14:54:56 -07:00
supports-module-resolution-nodenext Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
terser-class-static-blocks Remove swc minify related code branches (#65690) 2024-05-13 23:37:37 +02:00
transpile-packages Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
typescript-basic Add typechecking test for all entrypoints (#64478) 2024-04-15 17:52:44 +02:00