https://github.com/needle-engine/sveltekit-sample
Sveltekit with Needle Engine Sample + automatic deployment to github pages
https://github.com/needle-engine/sveltekit-sample
Last synced: about 1 year ago
JSON representation
Sveltekit with Needle Engine Sample + automatic deployment to github pages
- Host: GitHub
- URL: https://github.com/needle-engine/sveltekit-sample
- Owner: needle-engine
- Created: 2023-08-03T07:45:26.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-23T08:35:44.000Z (almost 2 years ago)
- Last Synced: 2024-08-23T09:34:06.795Z (almost 2 years ago)
- Language: Svelte
- Homepage: https://needle-engine.github.io/sveltekit-sample/
- Size: 4.47 MB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
*This is a SvelteKit project adding the needle-engine web component*
→ [**Live demo**](https://sveltekit-sample-z23hmxbmewty-latest.needle.run/) automatically build and deployed via github actions
## Needle Engine Configuration
- [`needle.config.json`](./needle.config.json)
Added the `baseUrl` config to `assets` to change codegen (`src/generated/gen`) to point to the local server relative url!
- [`svelte.config.js`](./svelte.config.js)
Defines `paths.base` for deployment.
Uses `adapter-static` currently 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 to `https://test.github.io/my-repository` it should contain `/my-repository`
## Needle Cloud
To automatically deploy to Needle Cloud go to [Settings/Secrets/Actions](settings/secrets/actions) and add a `NEEDLE_CLOUD_TOKEN` repository secret. A deployment can also be triggered manually on the [Deployment Action page](./actions/workflows/deploy.yml)
[](https://github.com/needle-engine/sveltekit-sample/actions/workflows/deploy.yml)