next-font-mirrors
v1.0.1
Published
A proxy for Next.js font loading with Google Fonts mirror support
Maintainers
Readme
next-font-mirrors
A proxy for Next.js font loading with Google Fonts mirror support.
Installation
npm install next-font-mirrors --save-devUsage
Set the NEXT_FONT_GOOGLE_MOCKED_RESPONSES environment variable to this package, which will be imported by Next.js:
NEXT_FONT_GOOGLE_MOCKED_RESPONSES=next-font-mirrorsEnvironment Variables
NEXT_FONT_GOOGLE_MOCKED_RESPONSES: Set tonext-font-mirrorsto enable the proxyNEXT_FONT_GOOGLE_MIRROR_URL: Mirror URL for Google Fonts. When set, requests tofonts.googleapis.comwill be redirected to this mirror.
License
Apache-2.0
