-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[6/n] @next/font/google: Cache stylesheet locally (#2940)
* Add font-data.json * Initial implementation of dynamic ImportMapping replacement * Extract font urls * Download fonts * Update stylesheet * Vc-ify * Apply suggestions from code review Co-authored-by: Alex Kirszenberg <alex.kirszenberg@vercel.com> * Check in font-data.json update script and update font-data.json * Add font update to ci schedule * assert -> bail * Remove extraction and caching of fonts Co-authored-by: Alex Kirszenberg <alex.kirszenberg@vercel.com>
- Loading branch information
1 parent
ec822a5
commit cd4a9f2
Showing
16 changed files
with
18,078 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Update Google font-data.json | ||
|
||
on: | ||
schedule: | ||
- cron: "15 0 * * *" # Run every day at 00:15 | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update_font_data: | ||
name: Update Google font-data.json | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: node ./scripts/fetch-google-font-data.js > crates/next-core/src/next_font_google/__generated__/font-data.json | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: Update Google font-data.json (${{ github.sha }}) | ||
file_pattern: crates/next-core/src/next_font_google/__generated__/font-data.json |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
cd4a9f2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
turbo-site – ./docs
turborepo.org
www.turborepo.org
turbopack.org
turbo.build
turbo.vercel.app
turbo-site.vercel.sh
www.turbopack.org
www.turbo.build
turbo.vercel.sh
www.turborepo.com
turbo-site-git-main.vercel.sh