Skip to content

Commit d6488a8

Browse files
committed
Self-host fonts via @nuxt/fonts
Replace Google Fonts @import with @nuxt/fonts module. Fonts are now downloaded at build time and bundled as static assets, fixing Docker builds that have no network access during the build step.
1 parent 4ca9d8e commit d6488a8

File tree

4 files changed

+134
-1
lines changed

4 files changed

+134
-1
lines changed

app/assets/css/main.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=JetBrains+Mono:wght@400;500;600&display=swap');
21
@import "tailwindcss";
32
@import "@nuxt/ui";
43
@plugin "@tailwindcss/typography";

nuxt.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
export default defineNuxtConfig({
33
modules: [
44
'@nuxt/eslint',
5+
'@nuxt/fonts',
56
'@nuxt/ui',
67
'nuxt-auth-utils'
78
],

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"dependencies": {
2424
"@iconify-json/lucide": "^1.2.90",
2525
"@internationalized/date": "^3.11.0",
26+
"@nuxt/fonts": "^0.14.0",
2627
"@nuxt/ui": "^4.4.0",
2728
"@tailwindcss/typography": "^0.5.19",
2829
"better-sqlite3": "^12.6.2",

pnpm-lock.yaml

Lines changed: 132 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)