File tree Expand file tree Collapse file tree 8 files changed +20
-16
lines changed
Expand file tree Collapse file tree 8 files changed +20
-16
lines changed Original file line number Diff line number Diff line change 33All notable changes to this project will be documented in this file.
44
55## [ unreleased]
6+ ### Added
7+
8+ ### Changed
9+ - Replaced Google Fonts CDN with self-hosted Inter font to fix intermittent build failures
10+
11+ ### Fixed
12+
613
714## [ 1.2.2] 2025-03-18
815### Added
Original file line number Diff line number Diff line change 11"use client" ;
22
33import { useState , useEffect } from "react" ;
4- import { Inter } from "next/font/google " ;
4+ import { inter } from "@/lib/fonts " ;
55import "../globals.css" ;
66import { cn } from "@/lib/utils" ;
77import { SessionProvider } from "@/components/providers/SessionProvider" ;
@@ -35,8 +35,6 @@ const NotificationProvider = dynamic<{ children: React.ReactNode }>(
3535 }
3636) ;
3737
38- const inter = Inter ( { subsets : [ "latin" ] } ) ;
39-
4038const getTitleFromPathname = ( pathname : string ) => {
4139 switch ( pathname ) {
4240 case "/" :
Original file line number Diff line number Diff line change 1- import { Inter } from "next/font/google " ;
1+ import { inter } from "@/lib/fonts " ;
22import "@/app/globals.css" ;
33import { ThemeProvider } from "@/components/providers/ThemeProvider" ;
44
5-
6- const inter = Inter ( { subsets : [ "latin" ] } ) ;
7-
85export default function OpenSourceHomeLayout ( {
96 children,
107} : {
Original file line number Diff line number Diff line change 11"use client" ;
22
3- import { Inter } from "next/font/google " ;
3+ import { inter } from "@/lib/fonts " ;
44import "../app/globals.css" ;
55import Link from "next/link" ;
66import { useEffect , useState } from "react" ;
77
8- const inter = Inter ( { subsets : [ "latin" ] } ) ;
9-
108export default function Error ( {
119 error,
1210 reset,
Original file line number Diff line number Diff line change 11"use client" ;
22
3- import { Inter } from "next/font/google " ;
3+ import { inter } from "@/lib/fonts " ;
44import "../app/globals.css" ;
55import { useEffect , useState } from "react" ;
66
7- const inter = Inter ( { subsets : [ "latin" ] } ) ;
8-
97export default function Loading ( ) {
108 // Use client-side rendering to avoid hydration issues
119 const [ mounted , setMounted ] = useState ( false ) ;
Original file line number Diff line number Diff line change 11"use client" ;
22
33import Link from "next/link" ;
4- import { Inter } from "next/font/google " ;
4+ import { inter } from "@/lib/fonts " ;
55import "../app/globals.css" ;
66import { useEffect , useState } from "react" ;
77
8- const inter = Inter ( { subsets : [ "latin" ] } ) ;
9-
108export default function NotFound ( ) {
119 // Use client-side rendering to avoid hydration issues
1210 const [ mounted , setMounted ] = useState ( false ) ;
Original file line number Diff line number Diff line change 1+ import localFont from "next/font/local" ;
2+
3+ // Load Inter font from local files
4+ export const inter = localFont ( {
5+ src : "../../public/fonts/inter/Inter-V.ttf" ,
6+ variable : "--font-inter" ,
7+ display : "swap" ,
8+ } ) ;
You can’t perform that action at this time.
0 commit comments