Npm run commands for 'dev' have been updated to 'start' in the Wordpress package. Also, removing peer dependencies for the CMS core and updating versions for various dependencies in pnpm-lock.yaml file. Furthermore, a modification to the SiteHeaderAccountSection function in the site-header-account-section.tsx file was made.
1022 B
1022 B
CMS/Wordpress - @kit/wordpress
Implementation of the CMS layer using the Wordpress library. [WIP - not yet working]
This implementation is used when the host app's environment variable is set as:
CMS_CLIENT=wordpress
Additionally, please set the following environment variables:
WORDPRESS_API_URL=http://localhost:8080
For development purposes, we ship a Docker container that runs a Wordpress instance. To start the container, run:
docker-compose up
or
pnpm run start
from this package's root directory.
The credentials for the Wordpress instance are:
WORDPRESS_DB_HOST=db
WORDPRESS_DB_USER=wordpress
WORDPRESS_DB_PASSWORD=wordpress
WORDPRESS_DB_NAME=wordpress
You will be asked to set up the Wordpress instance when you visit http://localhost:8080 for the first time.
Note for Wordpress REST API
To make the REST API in your Wordpress instance work, please change the permalink structure to /%post%/ from the Wordpress admin panel.