next.js
6bbec3cb - Turbopack: Make the globals we pass to workers configurable (#88773)

Commit
1 day ago
Turbopack: Make the globals we pass to workers configurable (#88773) # What Make the globals we pass to the workers configurable by the browser chunking context. # Why We don't want to hardcode knowledge of next.js, but we need to pass the deployment ID (in `NEXT_DEPLOYMENT_ID`) up to all workers. # How The chunking context provides `worker_forwarded_globals` that are passed into `getWorkerURL` which then passes them to the worker entrypoint via the `params=` mechanism. We switch to using an array of `params` rather than an object as the deserialization code is now mechanically generated.
Author
Parents
Loading