{"repo":"gornostay25/svelte-adapter-bun","free":true,"listed":false,"github":"https://github.com/gornostay25/svelte-adapter-bun","clone":"git clone https://github.com/gornostay25/svelte-adapter-bun.git","description":"A SvelteKit adapter for Bun","language":"TypeScript","stars":665,"topics":["bun","bunjs","svelte","sveltekit","sveltekit-adapter"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"svelte-adapter-bun Adapter for SvelteKit apps that generates a standalone Bun server. :zap: Usage Install with bun add -d svelte-adapter-bun , then add the adapter to your svelte.config.js : After building the server ( vite build ), use the following command to start: :gear: Options The adapter can be configured with various options: out The directory to build the server to. It defaults to build — i.e. bun run ./index.js would start the server locally after it has been created. serveAssets Serve static assets. Default: true - [x] Support HTTP range requests precompress Enables precompressing using gzip and brotli for assets and prerendered pages. It defaults to true . envPrefix If you need to change the name of the environment variables used to configure the deployment (for example, to deconflict with environment variables you don't control), you can specify a prefix: :spider web: WebSocket Server https://bun.sh/docs/api/websockets The server supports WebSocket connections. To enable them, you need to add a websocket hook to server hooks. For detailed documentation, examples, and advanced usage patterns, visit the WebSocket example README. :desktop computer: Environment variables Bun automatically reads configuration from .env.local , .env.development and .env PORT and HOST By default, the server will accept connections on 0.0.0.0 using port 3000. These can be customized with the PORT and HOST environment variables: SOCKET PATH Instead of using TCP/IP connections, you can con","default_branch":null,"files":null,"tree":[],"storefront":"/r/gornostay25","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gornostay25/svelte-adapter-bun/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}