Bash script for getting SvelteKit working with wails. #2760
figuerom16
started this conversation in
General
Replies: 1 comment 2 replies
-
Thanks for this 👍 Would you consider writing this into a guide for the website? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is more of list of steps I followed in order to get Wails and SvelteKit to work together in Linux. It will absolutely break in the future with changes to Wails or SvelteKit.
The important notes are:
export const prerender = true
andexport const ssr = false
. Then of course set the static adapter in svelte.config.js.window.location.href = '/<some>/<page>'
it will unload the wails runtime. What this means is that when using a frameless window you can end up losing the ability to call minimize, maximize, quit. Instead useimport { goto } from '$app/navigation'
then callgoto('/<some>/<page>')
in your +page.svelte. This will prevent a full page navigation.usage
./sveltekit-wails.sh pnpm newapp
sveltekit-wails.sh
Last tested with DevDependencies:
Beta Was this translation helpful? Give feedback.
All reactions