An experiment on deploying remote functions that run inside Postgres using v8
An experiment on deploying remote functions that run inside Postgres using v8, run React SSR, and are easily defined in a rpc/ directory.
export default function helloWorld () => {
const [{version}] = sql`SELECT version()`; // no `await` needed!
return <h1>Hello from <em>inside</em> Postgres: {version}</h1>;
}
Check out the demos & how it works.
vc env pull to get a .env.local file with the POSTGRES_URL credentialpnpm dev to start developingWe use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.