build
build copied to clipboard
fix(types): fix incompatible `redirects` types
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