vtex / faststore

Digital commerce toolkit for frontend developers
https://faststore.dev
MIT License
186 stars 58 forks source link

feat: Next 13 global fonts #2313

Closed lucasfp13 closed 3 months ago

lucasfp13 commented 3 months ago

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 of next/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?

References

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **faststore-site** | ⬜️ Ignored ([Inspect](https://vercel.com/faststore/faststore-site/AifBnHPavPQELe77GxAfkb8gYyab)) | [Visit Preview](https://faststore-site-git-feat-sfs-763-use-next-font-faststore.vercel.app) | | May 15, 2024 9:09pm |
codesandbox-ci[bot] commented 3 months ago

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.