Using SvelteKit with Umbraco as a headless backend.
Install Node from https://nodejs.org/en/. Currently, 16.x (LTS) is supported.
Install dependencies by running npm i
from the command line.
You need an Umbraco API endpoint to get content. Create a copy of the .env.example
file and name it .env
. Add the URL of the Umbraco environment where the content should come from (
VITE_UMBRACO_API_URL).
Spin up a local development enviroment by running npm run dev
from the command line.
Note: you need a working content API.
Run npm run build
to prerender all pages to static HTML to the /build
folder.