This is the SvelteKit app from the "Headless WordPress with SvelteKit" talk given by Kellen Mace at the Svelte Summit conference in fall, 2021: https://www.youtube.com/watch?v=l0q3alPtoow
cd
into the root directory of this project. Create a .env.local
file and define an environment variable like this VITE_PUBLIC_WORDPRESS_API_URL=http://sveltesummit.local/graphql
, replacing "http://sveltesummit.local" with the domain of your local WordPress site.npm install
, then npm run dev
. Visit http://localhost:3000
in a browser to see your app.