astro-font icon indicating copy to clipboard operation
astro-font copied to clipboard

Use `fallback` property in development mode

Open selipso opened this issue 8 months ago • 1 comments

I'm not sure if this happens in production builds or not, but I noticed that when developing offline using a Google Fonts url as a font, the astro compiler throws an error instead of using the fallback default sans-serif font.

Steps to reproduce:

  • turn off wi-fi / networking on your computer
  • astro dev a project that uses a google font URL in the AstroFont component
  • Compiler throws error

Expected behavior:

  • Project should compile using the default sans-serif font if network is unreachable

selipso avatar Jun 05 '24 07:06 selipso