From 89ac0f89cd440fa526cd6db3e746bd3317e378dd Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Thu, 17 Mar 2022 17:02:30 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=94=92=EF=B8=8F=20Change=20Google?= =?UTF-8?q?=20fonts=20key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../theme/GeneralSettings/FontSelector/FontSelector.tsx | 2 +- apps/docs/docs/self-hosting/configuration.md | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/builder/components/theme/GeneralSettings/FontSelector/FontSelector.tsx b/apps/builder/components/theme/GeneralSettings/FontSelector/FontSelector.tsx index 7d28188a3..f8b1bc59b 100644 --- a/apps/builder/components/theme/GeneralSettings/FontSelector/FontSelector.tsx +++ b/apps/builder/components/theme/GeneralSettings/FontSelector/FontSelector.tsx @@ -20,7 +20,7 @@ export const FontSelector = ({ const fetchPopularFonts = async () => { const response = await fetch( - `https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyD2YAiipBLNYg058Wm-sPE-e2dPDn_zX8w&sort=popularity` + `https://www.googleapis.com/webfonts/v1/webfonts?key=${process.env.NEXT_PUBLIC_GOOGLE_API_KEY}&sort=popularity` ) return (await response.json()).items.map( (item: { family: string }) => item.family diff --git a/apps/docs/docs/self-hosting/configuration.md b/apps/docs/docs/self-hosting/configuration.md index e22657463..b20f3d66f 100644 --- a/apps/docs/docs/self-hosting/configuration.md +++ b/apps/docs/docs/self-hosting/configuration.md @@ -47,6 +47,11 @@ Used authentication in the builder and for the Google Sheets integration step. M | NEXT_PUBLIC_GOOGLE_CLIENT_ID | -- | The Client ID from the Google API Console | | GOOGLE_CLIENT_SECRET | -- | The Client secret from the Google API Console | +Used for Google Fonts: +| Parameter | Default | Description | +| ---------------------------- | ------- | --------------------------------------------- | +| NEXT_PUBLIC_GOOGLE_API_KEY | -- | The API Key from the Google API Console | + ## Builder The following variables are only used for the builder.