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 developing