Follow for tweets on JAMStack. I'm a consultant web developer based in the UK 🇬🇧 and am available for work. I build accessible, fast and secure sites.
Oct 14, 2022 • 4 tweets • 3 min read
Did you know you can expose your ♥️ SvelteKit app to @Netlify Edge functions on localhost?
...handy for testing and debugging
#learnsvelte#svedgeFunctions
For dev server, just install the `netlify-cli` package then run `pnpm netlify dev`. It will detect SvelteKit and run your Svelte app with Edge Function middleware on localhost:8888.
Next build you app as usual then, to run the preview server try this command:
Oct 12, 2022 • 6 tweets • 4 min read
Someone asked me to write about using ♥️ SvelteKit with node so I made an image slider app using sharp...
...sprinkled in some Jhey Thompkins and Adam Argyle 🪄 future CSS tricks for fun.
In a followup post we’ll deploy SvelteKit to a Linode server.
#learnsvelte#sveltejs
We look at quite a few image optimisations too which get us a 💯 100 PageSpeed Insights score.
The app is responsive and for mobile, we replace Jhey’s hover effect with Adam Argyle’s bouncing overscroll effect using just CSS