-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
fix(astro): astro:config/server urls serialization #14460
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
Conversation
🦋 Changeset detectedLatest commit: 7ea3d82 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
CodSpeed Performance ReportMerging #14460 will not alter performanceComparing Summary
|
| <p id="out-dir">{outDir}</p> | ||
| <p id="src-dir">{srcDir}</p> | ||
| <p id="root">{root}</p> | ||
| <p id="root-type">{typeof root}</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about testing instanceof URL?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I don't know why I didn't do that, updated!
| if (Array.isArray(value)) { | ||
| return JSON.stringify(value); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are arrays always of scalars?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to handle this case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Is there any risk this is now a breaking change for anyone using this as a string? Or do we think the types should be the source of truth?
|
Yeah I thought about this and I think the types should be the source of truth here |
Changes
astro:config/serverURLS, which were emitted as strings instead of URLsTesting
Updated
Docs
Changeset