Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishi Raj Jain authored Mar 21, 2024
1 parent 15dbd56 commit 4c0118d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/astro-font/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ yarn add astro-font
pnpm add astro-font
```

### With Cloudflare Workers

`astro-font` uses the following node imports:

- `node:path`
- `node:buffer`

To make sure that it works in Cloudflare Workers, please enable the `node_compatibiliy` flag per the guide https://developers.cloudflare.com/workers/runtime-apis/nodejs/#enable-nodejs-with-workers.

## Google Fonts

Automatically optimize any Google Font. To use the font in all your pages, add it to `<head>` file in an Astro layout:
Expand Down

0 comments on commit 4c0118d

Please sign in to comment.