rsnext/test/production/app-dir
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
..
app-edge-middleware fix node.js module warning in middleware (#65112) 2024-04-27 07:36:23 -07:00
app-fetch-build-cache Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
app-only-flag Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
barrel-optimization Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
build-output fix(next): next build --debug log output layout is broken (#63193) 2024-04-02 15:05:28 -07:00
build-output-debug fix(next): next build --debug log output layout is broken (#63193) 2024-04-02 15:05:28 -07:00
client-components-tree-shaking Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
deopted-into-client-rendering-warning More Turbopack test fixes (#56248) 2023-10-01 17:50:03 +02:00
fetch-cache Add timeout/retry handling for fetch cache (#66652) 2024-06-10 11:34:36 -07:00
mangle-reserved Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
metadata-static Append sitemap extension and optimize imafe metadata static generation (#66477) 2024-06-10 17:34:06 +02:00
metadata-static-route-cache Use addDependency to track metadata route file changes (#66714) 2024-06-11 17:19:23 +02:00
parallel-routes-static Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
revalidate Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
subresource-integrity Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
symbolic-file-links Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
typed-routes-with-webpack-worker Add experimental options for more parallelization in webpack builds (#60177) 2024-01-10 17:11:33 -08:00
unexpected-error Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
worker-restart add experimental flag for retrying static generation (#66393) 2024-05-31 14:53:46 -07:00