Skip to content
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

fix: prerendered favicon handling #238

Merged

Conversation

james-elicx
Copy link
Contributor

@james-elicx james-elicx commented May 12, 2023

This PR does the following:

  • Fixes the favicon.ico handling to use its prerendered route.

The build output generates a prerendered function for favicons. We should simply update our prerendered route handling to process the favicon properly, instead of using the tryToFixFaviconFunc function.

fixes #237

image
image

@changeset-bot
Copy link

changeset-bot bot commented May 12, 2023

🦋 Changeset detected

Latest commit: 79749ce

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

This PR includes changesets to release 1 package
Name Type
@cloudflare/next-on-pages 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

@github-actions
Copy link
Contributor

github-actions bot commented May 12, 2023

🧪 A prerelease is available for testing 🧪

You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/next-on-pages/runs/4963809446/npm-package-next-on-pages-238

Or you can immediately run this with npx:

npx https://prerelease-registry.devprod.cloudflare.dev/next-on-pages/runs/4963809446/npm-package-next-on-pages-238

Copy link
Member

@dario-piotrowicz dario-piotrowicz left a comment

Choose a reason for hiding this comment

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

Thanks a lot @james-elicx!!!

Amazing stuff as always! ❤️

@dario-piotrowicz dario-piotrowicz merged commit e2d2046 into cloudflare:main May 12, 2023
@james-elicx james-elicx deleted the james/fix-favicon-prerendered branch May 12, 2023 23:32
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.

[🐛 Bug]: favicon.ico.func were not configured to run with the Edge Runtime
2 participants