fix: 🔒️ Change Google fonts key
This commit is contained in:
@ -20,7 +20,7 @@ export const FontSelector = ({
|
|||||||
|
|
||||||
const fetchPopularFonts = async () => {
|
const fetchPopularFonts = async () => {
|
||||||
const response = await fetch(
|
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(
|
return (await response.json()).items.map(
|
||||||
(item: { family: string }) => item.family
|
(item: { family: string }) => item.family
|
||||||
|
@ -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 |
|
| NEXT_PUBLIC_GOOGLE_CLIENT_ID | -- | The Client ID from the Google API Console |
|
||||||
| GOOGLE_CLIENT_SECRET | -- | The Client secret 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
|
## Builder
|
||||||
|
|
||||||
The following variables are only used for the builder.
|
The following variables are only used for the builder.
|
||||||
|
Reference in New Issue
Block a user