This repo contains code for a SvelteKit application generated using the create-svelte
package that generates a Bun server.
To create your own SvelteKit project, you can either
- Create your own repo from this template and modify it for your needs
- Create a new SvelteKit project by following the SvelteKit Getting Started Guide and then making a few small modifications as shown in this commit to deploy it to Render as a Node.js service.
Once you've created a project and installed dependencies with npm install
(or pnpm install
or yarn
), start a development server:
cd build; bun build/index.js
npm run build
You can preview the built app with
npm run preview
. This should not be used to serve your app in production.
Follow the deploy instructions at https://render.com/docs/deploy-sveltekit#deploy-as-a-bun-server