From 2de51dba687442da5949fbb83ddae1f3e7fe3bd5 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 5 Jul 2026 11:52:14 +0000 Subject: [PATCH] fix: resolve CI build timeout by using local geist fonts Switched from `next/font/google` to the `geist` NPM package in the `dcfs-gh-pages` frontend. This avoids external network requests to Google Fonts during the build process, which was causing timeouts in the ARM64 Docker build environment. - Added `geist` to `dcfs-gh-pages/package.json` - Updated `dcfs-gh-pages/app/layout.tsx` to use local fonts - Verified build and lint pass locally Co-authored-by: VulcanoSoftware <113239901+VulcanoSoftware@users.noreply.github.com> --- dcfs-gh-pages/app/layout.tsx | 15 +++------------ dcfs-gh-pages/package-lock.json | 10 ++++++++++ dcfs-gh-pages/package.json | 1 + 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/dcfs-gh-pages/app/layout.tsx b/dcfs-gh-pages/app/layout.tsx index 3be6066..8da8a66 100644 --- a/dcfs-gh-pages/app/layout.tsx +++ b/dcfs-gh-pages/app/layout.tsx @@ -1,18 +1,9 @@ import type { Metadata } from "next"; -import { Geist, Geist_Mono } from "next/font/google"; +import { GeistSans } from "geist/font/sans"; +import { GeistMono } from "geist/font/mono"; import "./globals.css"; import { ThemeProvider } from "./theme-provider"; -const geistSans = Geist({ - variable: "--font-geist-sans", - subsets: ["latin"], -}); - -const geistMono = Geist_Mono({ - variable: "--font-geist-mono", - subsets: ["latin"], -}); - export const metadata: Metadata = { title: "dcfs - Discord File System", description: "Transform your Discord into a powerful cloud storage solution", @@ -26,7 +17,7 @@ export default function RootLayout({ return ( {children} diff --git a/dcfs-gh-pages/package-lock.json b/dcfs-gh-pages/package-lock.json index 0c4f1f1..69c6d1f 100644 --- a/dcfs-gh-pages/package-lock.json +++ b/dcfs-gh-pages/package-lock.json @@ -18,6 +18,7 @@ "@types/js-cookie": "^3.0.6", "@types/js-yaml": "^4.0.9", "@types/react-syntax-highlighter": "^15.5.13", + "geist": "^1.7.2", "js-cookie": "^3.0.5", "js-yaml": "^4.1.0", "mime-types": "^3.0.1", @@ -4220,6 +4221,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/geist": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/geist/-/geist-1.7.2.tgz", + "integrity": "sha512-Gu5lDFa3pLRyoBlBPf0QIFHVdWAnpco7fS1bJm41jyLPFoguBgiubseUN2oLXMgqZ7uxAxDoXcHMhCY/fOTTgg==", + "license": "SIL OPEN FONT LICENSE", + "peerDependencies": { + "next": ">=13.2.0" + } + }, "node_modules/get-intrinsic": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", diff --git a/dcfs-gh-pages/package.json b/dcfs-gh-pages/package.json index 7c1bb3d..2173b6f 100644 --- a/dcfs-gh-pages/package.json +++ b/dcfs-gh-pages/package.json @@ -22,6 +22,7 @@ "@types/js-cookie": "^3.0.6", "@types/js-yaml": "^4.0.9", "@types/react-syntax-highlighter": "^15.5.13", + "geist": "^1.7.2", "js-cookie": "^3.0.5", "js-yaml": "^4.1.0", "mime-types": "^3.0.1",