lib/wordpress.ts
-> Functions for fetching WordPress CMS via Rest APIlib/wordpress.d.ts
-> Type declarations for WP Rest APIcomponents/posts/post-card.tsx
-> Component and styling for postsapp/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):