build icon indicating copy to clipboard operation
build copied to clipboard

fix(types): fix incompatible `redirects` types

Open serhalp opened this issue 9 months ago • 0 comments

Summary

The netlify.toml type marks the redirect .query values as optional but the (more or less) parsed result does not. This leads to some type errors downstream in Netlify CLI.

This makes them compatible by marking them both as required.

See https://github.com/netlify/build/blob/1b9f2f40de7ded6285e9b7c08a1adb43550a0ccf/packages/build-info/src/settings/netlify-toml.ts#L303-L305

serhalp avatar Mar 25 '25 22:03 serhalp