Remove `endpoint.write_to_disk()` in favor of standardized `endpoint.output()` (#75059)
This: - Makes the Endpoint trait not manage any file writing on its own, instead returning a structure containing OutputAssets, the paths where the OutputAssets can be found, and the associated Project. - Allows for OutputAssets to be written at a future point in Turbopack - Implements `endpoint_write_to_disk` for compatibility in dev. This continues to be used for prod builds, but in the future it won’t. In a future PR, production builds will dedupe and unify all output assets, writing them to disk at once, rather than exposing individual endpoint writes to JS to occur sequentially. Test Plan: CI
Showing
Please
register
or
sign in
to comment