This is a SvelteKit project adding the needle-engine web component
→ Live demo automatically build and deployed via github actions
needle.config.json
Added thebaseUrlconfig toassetsto change codegen (src/generated/gen) to point to the local server relative url!svelte.config.js
Definespaths.basefor deployment.
Usesadapter-staticcurrently to produce static pages that can be uploaded anywhere.
Adjust it for your needs. Make sure to change the base to the correct path on your domain!
For example: if you deploy tohttps://test.github.io/my-repositoryit should contain/my-repository
This repository is setup to automatically deploy to Needle Cloud when pushing to github - just fork and then go to Settings/Secrets/Actions to add a NEEDLE_CLOUD_TOKEN repository secret. (Using this Github Action)