---
title: "Vercel setup guide"
description: "Deploying a Nuxt app backed by a Turso database to Vercel comes down to two environment variables, NUXT_TURSO_DB_URL and NUXT_TURSO_DB_AUTH_TOKEN, which the libSQL TypeScript client uses to connect."
url: "https://swe.quest/articles/vercel-setup-guide-deae2ea282865eb4"
canonical: "https://turso.tech/blog/vercel-setup-guide-1c72f65b"
source: "Turso"
published: "2023-04-11"
difficulty: "medium"
kind: "How-to"
reading_minutes: 5
tags: ["sqlite","deployment","serverless","javascript"]
---

# Vercel setup guide

A post on [Turso](https://swe.quest/sources/turso.md), published 2023-04-11, 5 min read, How-to. Original: [https://turso.tech/blog/vercel-setup-guide-1c72f65b](https://turso.tech/blog/vercel-setup-guide-1c72f65b)

## Summary

Deploying a Nuxt app backed by a Turso database to Vercel comes down to two environment variables, NUXT\_TURSO\_DB\_URL and NUXT\_TURSO\_DB\_AUTH\_TOKEN, which the libSQL TypeScript client uses to connect. The guide creates and seeds a SQLite-compatible Turso database via the CLI shell, gets the database URL with \`turso db show --url\`, and generates a non-expiring token with \`turso db tokens create\`. Deployment can go through the Vercel deploy button or through manually forking the repo and importing it on the Vercel dashboard, and Vercel then redeploys automatically on pushes to the production branch.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [SQLite](https://swe.quest/tags/sqlite.md) (Data & databases)
- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)
- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)

## Prerequisites

- Vercel deployments
- environment variables
- basic SQL ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))

## Keywords

Turso, Vercel, Nuxt, libSQL, Turso CLI

## Related posts

- [Bringing SQLite to Vercel Functions with Turso](https://swe.quest/articles/bringing-sqlite-to-vercel-functions-with-turso-afed2a49c7b44020.md): Turso · 2026-02-19 · Medium · 8 min read · SQLite, Serverless, Replication, Multi-tenancy, JavaScript
  Turso's partial sync replicates a subset of SQLite database pages into Vercel Functions so reads run in-process with no network round-trip, while writes go to the remote Turso database for durability and consistency.
- [Build Internal Tools Using Neon, StackAuth, and Vercel](https://swe.quest/articles/build-internal-tools-using-neon-stackauth-and-vercel-451a972f29aed443.md): Neon · 2025-07-08 · Medium · 3 min read · Identity & auth, PostgreSQL, Serverless, Product engineering
  An open-source Next.js template for internal tools combines Neon serverless Postgres, Stack Auth and Vercel free tiers to provide a database, API routes, authentication, role-based access control and an admin panel.
- [Toasty now fully supports Turso](https://swe.quest/articles/toasty-now-fully-supports-turso-b9805f71f7e75171.md): Turso · 2026-10-07 · Medium · 5 min read · Rust, SQLite, Local-first & sync, Serverless, Databases
  Toasty, the async Rust ORM from Tokio's creator, now supports Turso in three modes behind one API: local files with optional concurrent writes (transactions automatically wrapped in BEGIN CONCURRENT), a serverless remote mode over HTTP with URL and auth token, and local-first sync with explicit pull/push calls.
- [Build your own Web Analytics Dashboard with Turso and Bolt](https://swe.quest/articles/build-your-own-web-analytics-dashboard-with-turso-and-bolt-74317d9f01cee8fc.md): Turso · 2024-12-03 · Medium · 4 min read · AI for coding, SQLite, Frontend, Analytics & OLAP
  Bolt can generate a Next.js 14 web analytics dashboard backed by a Turso database when you feed it the database schema and a detailed requirements prompt.
- [How We Built the Turso Shell in the Browser](https://swe.quest/articles/how-we-built-the-turso-shell-in-the-browser-3b4c7642ce66be0b.md): Turso · 2025-10-14 · Medium · 9 min read · WebAssembly, SQLite, React, Frontend, Browsers
  Turso's SQLite-compatible database can run entirely in the browser via WebAssembly, persisting data to OPFS with no backend.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
