hackerspace-team / next-wp

Headless Wordpress Starter built with the NextJS App Router and React Server Components

Home Page:https://wp.9d8.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Next.js Starter for Wordpress Headless CMS

Deploy with Vercel

  • lib/wordpress.ts -> Functions for fetching WordPress CMS via Rest API
  • lib/wordpress.d.ts -> Type declarations for WP Rest API
  • components/posts/post-card.tsx -> Component and styling for posts
  • app/posts/filter.tsx -> Component for handling filtering of posts

There are two env variables are required to be set in .env.local file:

WORDPRESS_URL="https://wordpress.com"
WORDPRESS_HOSTNAME="wordpress.com"

You can find the exampple of .env.local file in the .env.example file (and in Vercel):

About

Headless Wordpress Starter built with the NextJS App Router and React Server Components

https://wp.9d8.dev


Languages

Language:TypeScript 96.6%Language:CSS 3.0%Language:JavaScript 0.5%