Hannes Bornö
Hannes Bornö
Makes it possible to switch between edge/server API in dev without breaking the server. Fixes slack: [1](https://vercel.slack.com/archives/CGU8HUTUH/p1659082535540549) [2](https://vercel.slack.com/archives/C02CDC2ALJH/p1658978287244359) [3](https://vercel.slack.com/archives/C03KAR5DCKC/p1656869427468779) #### middleware-plugin.ts `middlewareManifest` moved from module scope to local scope. Stale...
For some context: [https://vercel.slack.com/archives/CGU8HUTUH/p1662124179102509](https://vercel.slack.com/archives/CGU8HUTUH/p1662124179102509) Continuation of #40221 and #40227 Adds `experimental.fontLoaders`. SWC next-font-loaders (#40221) transforms font loader (e.g. #40227) call expressions into an import with the function call arguments as...
Finds the new root layout on flight requests. If those segments doesn't match the FlightRouterState it's a new root layout and a full page reload is required. ## Bug -...
For some context: https://vercel.slack.com/archives/CGU8HUTUH/p1662124179102509 Adds `@next/font` package. `scripts/update-google-fonts.js` generates functions and metadata for all available google fonts. The metadata is used in `loader.ts` to validate font options (from #40221). It...
For some context: https://vercel.slack.com/archives/CGU8HUTUH/p1662124179102509 Transforms call expressions of imported functions, only affects imports specified in SWC options. Each argument is turned into JSON and appended to the import as a...
Adds caching for static font files emitted by `@next/font`.
When `useSelectedLayoutSegment` is used on the current level or in a page it should return null. fixes #41879 fixes #41878 ## Bug - [ ] Related issues linked using `fixes...
Use the name of the assigned const as the family name instead of trying to get it from the font file. That way we know we won't get any invalid...
Depends on https://github.com/vercel/next-telemetry/pull/94 ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have a helpful link attached, see...
When creating a root layout automatically in dev - also create a default head file. This PR also makes sure more cases are covered when creating root layouts by trying...