Skip to content

refactor: load local fonts#67

Merged
fityannugroho merged 1 commit intomainfrom
refactor/local-font
Aug 21, 2025
Merged

refactor: load local fonts#67
fityannugroho merged 1 commit intomainfrom
refactor/local-font

Conversation

@fityannugroho
Copy link
Owner

@fityannugroho fityannugroho commented Aug 21, 2025

Summary

Move font loading from external CDN to local font assets and refactor font handling to make builds and deployments deterministic.

Changes included

  • Add and organize local font assets under the public/fonts (or equivalent) directory.
  • Update global stylesheet and Next.js configuration to load local fonts instead of CDN.
  • Small refactors to components/layout that import or reference fonts.

Why

Removing the CDN dependency improves reliability, ensures consistent rendering across environments, and speeds up first meaningful paint for local networks.

How to verify

  1. Run development server: pnpm dev and open the site; check that the app uses the expected local fonts.
  2. Run a full build: pnpm build to ensure there are no build errors related to font imports.

Notes

If filenames for fonts changed during the refactor, you may need to invalidate CDN caches for rollout or keep a CDN fallback temporarily.

@fityannugroho fityannugroho changed the title refactor: load local fonts (refactor/local-font → main) refactor: load local fonts Aug 21, 2025
@fityannugroho fityannugroho merged commit ec99fc1 into main Aug 21, 2025
6 checks passed
@fityannugroho fityannugroho deleted the refactor/local-font branch August 21, 2025 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant