Files
wotra/web
aksdb d5b21c431e 🐛 Surface storage errors and ignore a late gate resolution
When IndexedDB rejected or blocked the open, resolveGate() rejected,
the gate stayed null and the app showed "Loading…" forever. A failed
open now cleans up and rejects with a reason, a blocked open gives up
after eight seconds, and resolveGate() turns that into an error gate:
the layout shows the message with a Retry button instead of the loading
line, and the sign-in itself is kept.

logout() clears the auth store and the session before it closes and
wipes the local data, and swallows a failing wipe, so the user is never
left half logged out. activate() sets the session only after the
database is open and only if the auth store is still valid with the
same token, so a resolution that finishes after a logout or another
sign-in no longer reopens the app for the wrong user. openDb() hands
out an in-flight open only to the same user; another user's open waits
for it and then replaces it.
2026-12-01 19:07:11 +01:00
..

sv

Everything you need to build a Svelte project, powered by sv.

Creating a project

If you're seeing this, you've probably already done this step. Congrats!

# create a new project
npx sv create my-app

To recreate this project with the same configuration:

# recreate this project
npx sv@0.15.2 create --template minimal --types ts --install npm web

Developing

Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.