next.js
6766a270 - Replace build id in Pages data routes with deployment id (#88959)

Commit
105 days ago
Replace build id in Pages data routes with deployment id (#88959) Closes PACK-6537 When a deployment id is available, don't put the data routes at `_next/data/<BUILDID>/page.json`, but at `_next/data/page.json`. Deployment skew (forcing a MPA nav instead of a SPA nav if a deployment happened inbetween) is handled by comparing a header on the client side. If you use `output:export` and set `config.deploymentId` (i.e. enable skew protection) you are still expected to set these headers. --- - [x] Find the right place where the header should be added for prerendered static RSC responses (route manifest)
Author
Parents
Loading