Build with Astro
Create a project (quickstart), open the Connect tab, and copy your .env. Then wire it up:
Database (SSR or build-time)
Section titled “Database (SSR or build-time)”npm install postgresimport postgres from 'postgres';export const sql = postgres(import.meta.env.DATABASE_URL, { ssl: 'require' });Static builds can query at build time; SSR (Node adapter) queries per request.
Auth (islands)
Section titled “Auth (islands)”Use the Supabase-compatible client inside interactive islands exactly as in the React guide — publishable values only.
Search
Section titled “Search”Astro content collections pair naturally with ImpulseSearch: push documents at build time, query client-side with a search-only key.
Host it on Impulse
Section titled “Host it on Impulse”Static output → ImpulseDrive static hosting or a web hosting plan. SSR with the Node adapter → Cloud VPS.