Build a Next.js Blog (WordPress Headless, SSG & ISR, Cloudways)

Опубликовано: 12 Сентябрь 2024
на канале: ByteGrad
8k
248

Cloudways good deal: (paid sponsorship). Disclaimer: this is a sponsored video (paid). It's your responsibility to evaluate safety, accuracy and other relevant parts of the reviewed product.
NEW React & Next.js Course:

Final code:

Hi, I'm Wesley. I'm a brand ambassador for Kinde (paid sponsorship).
NEW React & Next.js Course:
Professional JavaScript Course:
Professional CSS Course:

Web development roadmap 2024 & 2025:
Email newsletter (BIG update soon):
Discord: all my courses have a private Discord

⏱️ Timestamps:
00:00 Next.js + WordPress + Cloudways intro
01:59 Example blog overview
03:26 Setup WordPress + Cloudways
07:18 Fetch posts (WordPress REST API)
10:11 Fetch individual post (WordPress REST API)
13:00 Environment variable
13:38 Add new post
14:31 SSG: Static Site Generation
15:44 generateStaticParams
18:19 ISR (on-demand revalidation)
20:24 Cloudways Autonomous
20:49 Cloudways Protection

Disclaimer: video may contain mistakes. Always double-check yourself.