Skip to content

fontdue/example-next

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

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.

Learn More

To learn more about Next.js and Fontdue, take a look at the following resources:

Deploy on Vercel

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.

Updating content

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