diff --git a/examples/cms-wordpress/README.md b/examples/cms-wordpress/README.md index b75bd5ed2329fcc..632bcda74dcadcc 100644 --- a/examples/cms-wordpress/README.md +++ b/examples/cms-wordpress/README.md @@ -1,6 +1,6 @@ -# A statically generated blog example using Next.js and WordPress +# An Incremental Static Regeneration Blog Example Using Next.js and WordPress -This example showcases Next.js's [Static Generation](https://nextjs.org/docs/basic-features/pages) feature using [WordPress](https://wordpress.org) as the data source. +This example showcases Next.js's [Incremental Static Regeneration](https://nextjs.org/docs/basic-features/data-fetching/incremental-static-regeneration) feature using [WordPress](https://wordpress.org) as the data source. ## Demo diff --git a/examples/cms-wordpress/components/cover-image.tsx b/examples/cms-wordpress/components/cover-image.tsx index 46b361365117291..28407254870e4ff 100644 --- a/examples/cms-wordpress/components/cover-image.tsx +++ b/examples/cms-wordpress/components/cover-image.tsx @@ -2,7 +2,17 @@ import cn from 'classnames' import Image from 'next/image' import Link from 'next/link' -export default function CoverImage({ title, coverImage, slug }) { +interface Props { + title: string + coverImage: { + node: { + sourceUrl: string + } + } + slug?: string +} + +export default function CoverImage({ title, coverImage, slug }: Props) { const image = ( = {}) { const headers = { 'Content-Type': 'application/json' } if (process.env.WORDPRESS_AUTH_REFRESH_TOKEN) { diff --git a/examples/cms-wordpress/next.config.js b/examples/cms-wordpress/next.config.js index 7f68ab542a8f1cc..1f189d615c02a43 100644 --- a/examples/cms-wordpress/next.config.js +++ b/examples/cms-wordpress/next.config.js @@ -9,6 +9,7 @@ module.exports = { images: { domains: [ process.env.WORDPRESS_API_URL.match(/(?!(w+)\.)\w*(?:\w+\.)+\w+/)[0], // Valid WP Image domain. + '0.gravatar.com', '1.gravatar.com', '2.gravatar.com', 'secure.gravatar.com',