Skip to content

Conversation

serhalp
Copy link
Member

@serhalp serhalp commented Mar 25, 2025

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

export type QueryStringParameters = {
[k: string]: string
}

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 serhalp requested a review from a team as a code owner March 25, 2025 22:11
@serhalp serhalp changed the title fix(types): fix incompatible redirects query type fix(types): fix incompatible redirects types Mar 25, 2025
@serhalp serhalp marked this pull request as draft March 25, 2025 22:14
This is incompatible with types elsewhere, so not worth it
@github-actions github-actions bot added the stale label May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant