Astro v4.3.7
Node v21.5.0
System macOS (arm64)
Package Manager npm
Output server
Adapter @astrojs/cloudflare
Integrations @astrojs/react
@astrojs/tailwind
@astrojs/sitemap
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When installing the Google Noto font to support multiple languages on my website, the _routes.json file broke on Cloudflare as there is a limit to the number of lines it can include.
In my case, I had to install the latin font... and Arabic, Hebrew, Hindi, simplified and traditional Chinese, and Korean too.
You can replicate this issue by installing these fonts and using the Cloudflare adapter:
import "@fontsource-variable/noto-sans"; // latin
import "@fontsource-variable/noto-sans-arabic"; // arabic
import "@fontsource-variable/noto-sans-hebrew"; // hebrew
import "@fontsource-variable/noto-sans-devanagari"; // hindi
import "@fontsource-variable/noto-sans-sc"; // simplified chinese
import "@fontsource-variable/noto-sans-tc"; // traditional chinese
import "@fontsource-variable/noto-sans-kr"; // korea
What's the expected result?
Maybe if the fonts were nested under an astro/fonts folder the route file would be much simpler:
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When installing the Google Noto font to support multiple languages on my website, the
_routes.json
file broke on Cloudflare as there is a limit to the number of lines it can include.In my case, I had to install the latin font... and Arabic, Hebrew, Hindi, simplified and traditional Chinese, and Korean too.
This created a
_routes.json
file like this:You can replicate this issue by installing these fonts and using the Cloudflare adapter:
What's the expected result?
Maybe if the fonts were nested under an
astro/fonts
folder the route file would be much simpler:Or if there was a way to exclude them by filetype:
Link to Minimal Reproducible Example
N/A
Participation