Avif server as octet-stream #39706
Verify canary release
Provide environment information
What browser are you using? (if relevant)
Chrome 104, Edge 106
How are you deploying your application? (if relevant)
Describe the Bug
Wrong mime type for AVIF image from public folder.
Correct Content-Type, so image can be loaded.
Link to reproduction
https://github.com/pegak/nauc-me-it - you need to have pixel density 2x, run locally and check bg-landing.avif loading :)
The text was updated successfully, but these errors were encountered:
@pegak Yes. I am able to reproduce the issue in local environment.
Next.js already implemented
The PR fixes #39706 by adding `avif` mime type directly to `send`. The PR also removes the previous avif workaround for image optimizer. Note: The PR is still a workaround for now. I will submit a PR to `pillarjs/send` to help them update `mime` to fix the issue once and for all. But now `send.mime.define` just works. ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md`
@pegak Actually now you have a great opportunity to start with!
A few notes: