Commit 2039bdc
feat(web): Use local fonts in Next.js app to improve build times (#626)
* feat(web): Use local fonts in Next.js app to improve build times
Switches from using `next/font/google` to `next/font/local` for all fonts
used in the `apps/web` Next.js application.
This change involves:
- Downloading all previously used Google Fonts (WOFF2 format) and storing them locally in `apps/web/public/fonts/`.
- Updating `apps/web/lib/fonts.ts` to define fonts using `next/font/local`, pointing to the locally stored font files.
- Modifying `apps/web/app/layout.tsx` to utilize the locally defined `Inter` font from `lib/fonts.ts`.
- Verifying that the existing Docker configuration (`services/app/Dockerfile`) correctly includes the `apps/web/public/fonts/` directory in the final image.
This approach aims to reduce build times by avoiding font downloads during the build process and bundles the fonts directly with the application.
* Fixed fonts
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>1 parent 80bd7d2 commit 2039bdc
File tree
47 files changed
+266
-92
lines changed- apps/web
- app
- lib
- public/fonts
- alegreya
- bebas-neue
- inter
- lato
- merriweather
- montserrat
- mulish
- noto-sans
- nunito
- open-sans
- oswald
- playfair-display
- poppins
- pt-sans
- quicksand
- raleway
- roboto-slab
- roboto
- rubik
- source-sans-3
- source-serif-4
- work-sans
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
47 files changed
+266
-92
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | | - | |
19 | | - | |
20 | 17 | | |
21 | 18 | | |
22 | 19 | | |
| |||
66 | 63 | | |
67 | 64 | | |
68 | 65 | | |
69 | | - | |
| 66 | + | |
70 | 67 | | |
71 | 68 | | |
72 | 69 | | |
| |||
0 commit comments