fix: switch Google Fonts to runtime <link> tags for build environments without internet
- Replace next/font/google with <link> tags in <head> (loads fonts client-side at runtime) - Define --font-nunito and --font-pixel CSS variables in globals.css with font-family fallbacks - Remove @prisma/client from serverExternalPackages in next.config.ts (devDep only)
This commit is contained in:
1 parent
9a8905c726
commit
2f030deb42
3 files changed
+16
-18
No files matched your search
@@ -4,6 +4,11 @@
|
||||
@plugin "tailwindcss-animate";
|
||||
@custom-variant dark (&:where(.dark, .dark *));
|
||||
|
||||
:root {
|
||||
--font-nunito: "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
|
||||
--font-pixel: "Pixelify Sans", monospace;
|
||||
}
|
||||
|
||||
@theme {
|
||||
--font-sans:
|
||||
var(--font-nunito), "Nunito", ui-sans-serif, system-ui, -apple-system,
|
||||
|
||||
Reference in new issue
Block a user