Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
turbopack: Don't error with legacy server actions boolean (#58416)
### What? This stops Turbopack from erroring out when trying to parse apps using NextConfig's legacy `experimental.serverActions` boolean value. ### Why? Old apps may not have removed the legacy boolean flag, but should still run. ### How? At first I attempted updating Zod's configuration to use a default option config when a boolean was encountered, and passing the updated config to Turbopack, but this would hide the warning message. Then I tried implementing a custom `Deserializer` on the Rust side to handle boolean values and default. But, it was just so much easier to implement with a enum supporting both the current and the legacy configuration. Closes PACK-1962
- Loading branch information