Next.js Discord

Discord Forum

Use a single next/font/local package across multiple micro-frontend apps

Unanswered
Japanese Bobtail posted this in #help-forum
Open in Discord
Avatar
Japanese BobtailOP
We have a micro-frontend architecture with multiple Next.js apps + an Astro app, all served from the same domain.

next/font/local is pretty sweet for serving optimized font faces in a single Next.js app, but I was wondering if it's possible to package it in a way where the same font definitions and files can be re-used across multiple apps, so that once they're downloaded and cached they will not have to be re-downloaded as you navigate across the different micro-frontends.

0 Replies