From 48829e2efcc30d085048a125279c54176414a4db Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 4 Mar 2026 13:51:28 +0000 Subject: [PATCH] fix: switch to local geist fonts and use direct prisma binary in entrypoint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace next/font/google Geist imports with geist npm package to eliminate Google Fonts CDN network dependency during Docker image builds (was causing intermittent build failures → redeployment errors) - Use ./node_modules/.bin/prisma directly in docker-entrypoint.sh instead of npx for both migrate deploy and db seed commands Co-authored-by: xCyanGrizzly <53275238+xCyanGrizzly@users.noreply.github.com> --- docker-entrypoint.sh | 4 ++-- src/app/layout.tsx | 15 +++------------ 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index df27d53..67125a6 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -10,11 +10,11 @@ if [ "$AUTH_SECRET" = "change-me-to-a-random-secret-in-production" ] || [ -z "$A fi echo "Running database migrations..." -npx prisma migrate deploy +./node_modules/.bin/prisma migrate deploy if [ "$SEED_DATABASE" = "true" ]; then echo "Seeding database..." - npx prisma db seed || echo "Seeding skipped or already done." + ./node_modules/.bin/prisma db seed || echo "Seeding skipped or already done." fi echo "Starting application..." diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 99a8c37..a752780 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,5 +1,6 @@ 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 { SessionProvider } from "@/components/providers/session-provider"; import { ThemeProvider } from "@/components/providers/theme-provider"; import { Toaster } from "@/components/ui/sonner"; @@ -7,16 +8,6 @@ import { TooltipProvider } from "@/components/ui/tooltip"; import { APP_NAME } from "@/lib/constants"; import "./globals.css"; -const geistSans = Geist({ - variable: "--font-geist-sans", - subsets: ["latin"], -}); - -const geistMono = Geist_Mono({ - variable: "--font-geist-mono", - subsets: ["latin"], -}); - export const metadata: Metadata = { title: { default: APP_NAME, @@ -29,7 +20,7 @@ export const metadata: Metadata = { export default function RootLayout({ children }: { children: React.ReactNode }) { return ( - +