Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(types): fix incompatible redirects types #6165

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

serhalp
Copy link
Contributor

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant