From bec2c735607d7ae50bd4c61a16a6fe8db24f619e Mon Sep 17 00:00:00 2001 From: Rishi Raj Jain Date: Thu, 21 Mar 2024 07:40:52 +0530 Subject: [PATCH] Update README.md --- packages/astro-font/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/astro-font/README.md b/packages/astro-font/README.md index bde891e..2964817 100644 --- a/packages/astro-font/README.md +++ b/packages/astro-font/README.md @@ -27,6 +27,11 @@ pnpm add astro-font 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. +If the above guide fails to work, go to your **Cloudflare project > Settings > Functions > Compatibility flags** and add the flag (as follows). + +Screenshot 2024-03-21 at 7 39 51 AM + + ## Google Fonts Automatically optimize any Google Font. To use the font in all your pages, add it to `` file in an Astro layout: