Set up your AI application database fast with Vercel and Neon. Configure PostgreSQL with vector support for AI applications in minutes. No database experience required.
Option 1: Using the menu
Option 2: Using keyboard shortcut
Option 3: Using the command palette
Cmd/Ctrl + Shift + P
to open the command paletteNavigate to Vercel
Browse the Marketplace
Neon
in the search barCreate Database
Get Connection String
.env.local
Create Environment File
.env.example
file and rename it to .env
:Option 1: Using the command line.env.example
Copy
from the context menuPaste
from the context menu.env.example (copy)
to .env
Configure Database URL
.env
fileDATABASE_URL
Add OpenAI API Key
.env
file:.env
file to version control. It’s already
in .gitignore
for safety.Run Migration
What Happens
lib/db/schema/resources.ts
id
, content
, createdAt
, and updatedAt
Check Migration Success
Optional: View Database
id
, content
, createdAt
, and updatedAt
with no dataMigration fails with connection errors
postgresql://username:password@host:port/database
pgvector extension fails to install