Skip to content

fix: include env in app icon cache key#6742

Merged
chenjiahan merged 1 commit intomainfrom
codex/fix-bug-in-packages/core/src
Dec 10, 2025
Merged

fix: include env in app icon cache key#6742
chenjiahan merged 1 commit intomainfrom
codex/fix-bug-in-packages/core/src

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

  • include public path and dist directory in app icon cache keys to avoid stale URLs

Testing

  • not run (not requested)

Codex Task

Copilot AI review requested due to automatic review settings December 10, 2025 02:43
@netlify
Copy link
Copy Markdown

netlify Bot commented Dec 10, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit dd22b0e
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/6938de5b0eca2100083576da
😎 Deploy Preview https://deploy-preview-6742--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 69 (no change from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a cache staleness issue by incorporating environment-specific variables (distDir and publicPath) into the app icon cache key, ensuring that cached icons reflect the correct URLs for different build configurations.

  • Updated cache key construction to include distDir and publicPath alongside the icon src
  • Modified all three cache operations (get and two sets) to use the new composite cache key

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/core/src/plugins/appIcon.ts
@chenjiahan chenjiahan merged commit f8536da into main Dec 10, 2025
18 checks passed
@chenjiahan chenjiahan deleted the codex/fix-bug-in-packages/core/src branch December 10, 2025 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants