This is a Next.js project bootstrapped with create-next-app
.
Add a .env.local
file with your Fontdue URL:
NEXT_PUBLIC_FONTDUE_URL=https://example.fontdue.com
Then start the development server:
npm install && npm run dev
Open http://localhost:3000 with your browser to see the result.
To learn more about Next.js and Fontdue, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
- Fontdue.js documentation
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out the Next.js deployment documentation for more details.
Data fetched using fetch
is automatically cached. This repo includes an endpoint: /api/revalidate
that you can call whenever your Fontdue content changes by logging in your Fontdue admin panel, navigating to Settings -> Website settings, and entering into Deploy hook URL: https://{your-site}.vercel.app/api/revalidate