Closed lucasfp13 closed 3 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
What's the purpose of this pull request?
This PR intends to introduce
next/font
built-in feature to the project (app
directory).The
babelrc.js
config file needed to be removed in favor ofnext/font
usage, it's mandatory. Next.js requires the use of its own compiler (SWC) config, so for now we still don't have the necessary GraphQL Codegen plugin to replace the@graphql-codegen/client-preset
being loaded in the Babel config file, as the existing one (@graphql-codegen/client-preset-swc-plugin
) has a bug that hasn't been solved yet (see here and here.Also, right now we are just introducing the feature, but we will have to support local fonts and font override later in other tasks.
How to test it?
yarn turbo run dev --filter=@faststore/core
);/
,/office
and some/<slug>/p
);/fs-next-update
is rendering with some text on the top of the page and without errors.References