This is a Next.js project bootstrapped with create-next-app
.
Set up WORDPRESS_API_URL=
in your env file pointing to your wp server
yarn dev
Open http://localhost:3000 with your browser to see the result.
I'm using wordpress as an headless CMS using WPGraphQL plugin, to have a graphql server instead of plain rest apis
Copyright © 2020 Daniele Bertella
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses
Assets, images and audios are licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.