https://github.com/stevapple/next-font-mirrors
A proxy for Next.js font loading with Google Fonts mirror support.
https://github.com/stevapple/next-font-mirrors
Last synced: 11 months ago
JSON representation
A proxy for Next.js font loading with Google Fonts mirror support.
- Host: GitHub
- URL: https://github.com/stevapple/next-font-mirrors
- Owner: stevapple
- License: apache-2.0
- Created: 2025-07-14T04:32:15.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-14T05:41:44.000Z (11 months ago)
- Last Synced: 2025-07-24T15:38:41.224Z (11 months ago)
- Language: TypeScript
- Size: 27.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# next-font-mirrors
A proxy for Next.js font loading with Google Fonts mirror support.
## Installation
```bash
npm install next-font-mirrors --save-dev
```
## Usage
Set the `NEXT_FONT_GOOGLE_MOCKED_RESPONSES` environment variable to this package, which will be imported by Next.js:
```bash
NEXT_FONT_GOOGLE_MOCKED_RESPONSES=next-font-mirrors
```
## Environment Variables
- `NEXT_FONT_GOOGLE_MOCKED_RESPONSES`: Set to `next-font-mirrors` to enable the proxy
- `NEXT_FONT_GOOGLE_MIRROR_URL`: Mirror URL for Google Fonts. When set, requests to `fonts.googleapis.com` will be redirected to this mirror.
## License
Apache-2.0