Skip to content

perf(OriginResolver): cache expensive compute - #1009

Merged
vicb merged 2 commits into
opennextjs:mainfrom
anonrig:yagiz/improve-with-cloudflare
Oct 10, 2025
Merged

perf(OriginResolver): cache expensive compute#1009
vicb merged 2 commits into
opennextjs:mainfrom
anonrig:yagiz/improve-with-cloudflare

Conversation

@anonrig

@anonrig anonrig commented Oct 10, 2025

Copy link
Copy Markdown
Contributor

Let's cache certain internals to avoid calling them on every re-render.

Part of #1002

@changeset-bot

changeset-bot Bot commented Oct 10, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: da3a4cc

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

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

@pkg-pr-new

pkg-pr-new Bot commented Oct 10, 2025

Copy link
Copy Markdown

Open in StackBlitz

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

commit: da3a4cc

@vicb vicb changed the title improve withCloudflare() execution cost perf(OriginResolver): cache expensive compute Oct 10, 2025

@vicb vicb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @anonrig 🙏

(did some minor edits)

@vicb
vicb merged commit e8f5e66 into opennextjs:main Oct 10, 2025
3 checks passed
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