Skip to content

Conversation

@rschristian
Copy link
Member

What kind of change does this PR introduce?

Bugfix

Did you add tests for your changes?

N/A

Summary

Better fix for preactjs/preact-www#979

If the --prerenderUrls file exists (defaults to /prerender-urls.json) on disk, but for some reason cannot produce a result (wrong format, throws, etc.), this PR ensures the build fails, rather than continues w/ a warning while using the default (prerendering only / with no passed-in data).

Does this PR introduce a breaking change?

Technically yes, though it's the right change to make. It will only break builds for those that have the file on disk, but a result cannot be obtained from it. They should remove the file or fix it.

@rschristian rschristian requested a review from a team as a code owner March 15, 2023 20:51
@changeset-bot
Copy link

changeset-bot bot commented Mar 15, 2023

🦋 Changeset detected

Latest commit: 7422ae6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
preact-cli Patch

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

@rschristian rschristian merged commit a4968ee into master Mar 15, 2023
@rschristian rschristian deleted the fix/error-on-prerenderUrls branch March 15, 2023 21:15
@preact-bot preact-bot mentioned this pull request Mar 15, 2023
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.

2 participants