2
0

Merge pull request #35 from baptisteArno/fix/google-font-error

fix: 🐛 Remove missing creds GFont error
This commit is contained in:
Baptiste Arnaud
2022-05-11 07:37:05 -07:00
committed by GitHub

View File

@@ -19,6 +19,7 @@ export const FontSelector = ({
}, [])
const fetchPopularFonts = async () => {
if (!process.env.NEXT_PUBLIC_GOOGLE_API_KEY) return []
const response = await fetch(
`https://www.googleapis.com/webfonts/v1/webfonts?key=${process.env.NEXT_PUBLIC_GOOGLE_API_KEY}&sort=popularity`
)