gornostay25 / svelte-adapter-bun

A SvelteKit adapter for Bun
MIT License
537 stars 34 forks source link

SSG support #26

Closed WarningImHack3r closed 1 month ago

WarningImHack3r commented 1 year ago

Is there a way to create a static bundle with Bun and SvelteKit? I want to generate a static site for GitHub Pages, but AFAIK it's not possible atm.

Will there be an option to generate a static output instead of creating a Bun server? Or does Bun work with @sveltejs/adapter-static?

notramo commented 1 month ago

@WarningImHack3r, the static adapter works with Bun. The point of this project is to use the built-in Bun HTTP server instead of the Node-compatible one when running in Bun. Static site generation does not use these, so the proper way of doing static sites is the static adapter.

WarningImHack3r commented 1 month ago

Ok thanks good to know!