Go to the Access page
Navigate to Dashboard > Edge Platform > Database > [Select Database] > Access.
Connect your Edge Scripts to Bunny Database using environment variables
Go to the Access page
Access the environment variables
import { createClient } from "@libsql/client/web";
import process from "node:process";
const client = createClient({
url: process.env.DB_URL,
authToken: process.env.DB_TOKEN,
});
const result = await client.execute("SELECT * FROM users");
Was this page helpful?