Skip to content

Conversation

grabmateusz
Copy link
Contributor

@grabmateusz grabmateusz commented Aug 26, 2025

MR closes #961

Copy link

changeset-bot bot commented Aug 26, 2025

🦋 Changeset detected

Latest commit: ff07456

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

This PR includes changesets to release 3 packages
Name Type
@opennextjs/aws Patch
app-pages-router Patch
app-router 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

Copy link
Contributor

@khuezy khuezy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks!

We haven't heard anything from the Vercel team in a few days... so they seem pretty busy at the moment.

const cacheJson = files.json
? safeParseJsonFile(fs.readFileSync(files.json, "utf8"), cacheFilePath)
: undefined;
if (!cacheFileMeta || !cacheJson) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is not correct meta does not exist for page router, doing that means that we are skipping any entry from page router.
You should do something like if ((files.meta && !cacheFileMeta) || (files.json && !cacheJson))

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the catch.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @conico974, I confirm issue originated in App Router app and was tested only there. I've applied requested fix, please rereview.

@grabmateusz grabmateusz requested a review from conico974 August 29, 2025 06:49
Copy link

pkg-pr-new bot commented Aug 30, 2025

Open in StackBlitz

pnpm add https://pkg.pr.new/@opennextjs/aws@963

commit: ff07456

@conico974
Copy link
Contributor

@grabmateusz Could you fix linting please. I'll merge once done

@conico974 conico974 merged commit 3b28a99 into opennextjs:main Aug 31, 2025
3 checks passed
@github-actions github-actions bot mentioned this pull request Aug 31, 2025
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.

createAssets fails in case of broken JSON in fetch cache
4 participants