vercel login
vercel link
verecel git connect
vercel env pull .env.development.local
DATABASE_URL
if needednpm run dev
schema.ts
npm run migrate
npm run migrate:apply
or run generated SQL scripts (lists in console, or view drizzle
directory)Current variables defined using Vercel dashboard (setting up Vercel Postgres or Vercel Neon integration)
console.log({
// Vercel
POSTGRES_URL: env.POSTGRES_URL,
POSTGRES_HOST: env.POSTGRES_HOST,
POSTGRES_USER: env.POSTGRES_USER,
POSTGRES_PASSWORD: env.POSTGRES_PASSWORD,
POSTGRES_DATABASE: env.POSTGRES_DATABASE,
// Neon
DATABASE_URL: env.DATABASE_URL,
PGHOST: env.PGHOST,
PGUSER: env.PGUSER,
PGPASSWORD: env.PGPASSWORD,
PGDATABASE: env.PGDATABASE
});