Build with SvelteKit
Create a project (quickstart), open the Connect tab, and copy your .env. Then wire it up:
Database in load functions
Section titled “Database in load functions”npm install postgresimport postgres from 'postgres';import { DATABASE_URL } from '$env/static/private';export const sql = postgres(DATABASE_URL, { ssl: 'require' });import { sql } from '$lib/server/db';export async function load() { return { posts: await sql`select id, title from posts order by id desc` };}Browser: Supabase-compatible client with the publishable values (PUBLIC_AUTH_URL, PUBLIC_AUTH_ANON_KEY). Server hooks: verify the JWT against your JWKS — Auth → Integrating.
Storage & cache
Section titled “Storage & cache”Same patterns as Node.js — keep credentials in $env/static/private.
Host it on Impulse
Section titled “Host it on Impulse”adapter-node build runs cleanly on a Cloud VPS; adapter-static sites serve from ImpulseDrive static hosting.