Skip to content
Back

Sveltekit + Bun sites runtime not deploying

  • 0
  • Sites
  • Cloud
x
20 May, 2026, 14:57

anyone tried deploying sveltekit + bun sites? its building but not running, and the only thing from build console to value is

TypeScript
> Using svelte-adapter-bun
.svelte-kit/adapter-bun/entries/hooks.server.js (94:45) [UNRESOLVED_IMPORT] Warning: Could not resolve 'async_hooks' in .svelte-kit/adapter-bun/entries/hooks.server.js
    ╭─[ .svelte-kit/adapter-bun/entries/hooks.server.js:94:46 ]

 94const { AsyncLocalStorage } = await import("async_hooks");
    │                                                   ──────┬──────  
    │                                                         ╰──────── Module not found, treating it as an external dependency
────╯

which is of no help, doesnt work with node-adapter either, when set to bun runtime

TL;DR
Sveltekit + Bun sites runtime not deploying. Sveltekit may not be officially supported by sites yet. Issue with deploying prebuilt version using `bun ./index.js`. No error or warning in logs. Works fine locally with Bun 1.3.14, but cloud is on 1.3.8. Appwrite Console is made with Sveltekit and hosted on Appwrite.
x
20 May, 2026, 14:58

Sveltekit + Bun sites runtime not deploying

Chirag Aggarwal
20 May, 2026, 15:00

i dont think sveltekit is officially supported by sites

Chirag Aggarwal
20 May, 2026, 15:00

yet

x
20 May, 2026, 15:04

I uploaded prebuilt version and it should run just by Bun ./index.js not sure what is the issue there, no error or warning in log, works fine locally, but local Bun is 1.3.14 and Cloud is on 1.3.8

Arhan Ansari
21 May, 2026, 07:44

But the main Appwrite Console is made with sveltekit and is hosted on Appwrite

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more