Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Connect your Magic Container apps to Bunny Database using environment variables
Go to the Access page
Generate tokens
Add to Magic Container
Select your app
Access the environment variables
import { createClient } from "@libsql/client/web"; const client = createClient({ url: process.env.BUNNY_DATABASE_URL, authToken: process.env.BUNNY_DATABASE_AUTH_TOKEN, }); const result = await client.execute("SELECT * FROM users");
Was this page helpful?