Move Google Fonts API key to constants

This commit is contained in:
Danila Poyarkov 2026-03-04 09:33:42 +03:00
parent 630277b896
commit 969158a6c2
2 changed files with 3 additions and 1 deletions

View file

@ -122,3 +122,5 @@ export const AI_MODELS: ModelOption[] = [
]
export const DEFAULT_AI_MODEL = AI_MODELS[0].id
export const GOOGLE_FONTS_API_KEY = 'AIzaSyD1tYDR_dUEiV-Tw1vksEhZbUytgKW5pc8'

View file

@ -50,7 +50,7 @@ const BUNDLED_FONTS: Record<string, string> = {
'Inter|Regular': '/Inter-Regular.ttf'
}
const GOOGLE_FONTS_API_KEY = 'AIzaSyD1tYDR_dUEiV-Tw1vksEhZbUytgKW5pc8'
import { GOOGLE_FONTS_API_KEY } from './constants'
const googleFontsCache = new Map<string, Record<string, string>>()
const googleFontsFailed = new Set<string>()