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

[next] Add caching for static font files #8620

Closed
wants to merge 1 commit into from

Conversation

hanneslund
Copy link

Adds caching for static font files emitted by @next/font.

@hanneslund hanneslund added area: next semver: patch PR contains bug fixes labels Sep 23, 2022
@hanneslund hanneslund marked this pull request as ready for review September 23, 2022 15:31
@EndangeredMassa EndangeredMassa changed the title Add caching for static font files [next] Add caching for static font files Sep 23, 2022
Copy link
Member

@styfle styfle left a comment

Choose a reason for hiding this comment

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

Seems correct but CI is failing.

I'm also wondering if we should put fonts into the existing media directory. Because we used to use /_next/static/images but then it was changed to /_next/static/media but I don't recall why.

Maybe @ijjk or @sokra knows the reason.

https://nextjs.org/docs/deployment#:~:text=This%20output%20is%20generated%20inside%20the%20.next%20folder%3A

Update: I found this PR vercel/next.js#30168

@hanneslund
Copy link
Author

I think that makes sense, closing this and changing the output path. Thanks.
vercel/next.js#40868

@hanneslund hanneslund closed this Sep 24, 2022
@styfle styfle deleted the hannes/fonts-caching branch September 24, 2022 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: next semver: patch PR contains bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants