Guides
Next.js + Turso
Set up Turso in your Next.js project in minutes.
Prerequisites
Before you start, make sure you:
- Install the Turso CLI
- Sign up or login to Turso
- Have a Next.js app — learn more
1
Install the libSQL SDK
Begin by installing the @libsql/client
dependency in your project:
2
Configure database credentials
Get the database URL:
Get the database authentication token:
Assign credentials to the environment variables inside .env
.
3
Configure libSQL client
4
Execute SQL