use bun sql instead of postgres.js

This commit is contained in:
2026-03-12 23:40:44 +01:00
parent aaef31254b
commit be19e26d1b
10 changed files with 31 additions and 41 deletions

View File

@@ -20,13 +20,13 @@ bun x sv create --template minimal --types ts --add prettier eslint vitest="usag
## Developing
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
This project now requires Bun at runtime because the server uses Bun SQL. Start the development server with:
```sh
npm run dev
bun run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
bun run dev -- --open
```
## Building
@@ -34,9 +34,9 @@ npm run dev -- --open
To create a production version of your app:
```sh
npm run build
bun run build
```
You can preview the production build with `npm run preview`.
You can preview the production build with `bun run preview`.
> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.