Files
triggerdotdev--trigger.dev/docs
Oskar 53f21e1330 feat(build): Add syncNeonEnvVars extension and improve Vercel env var syncing
Add a new `syncNeonEnvVars` build extension for syncing environment variables
from Neon database projects to Trigger.dev. The extension automatically detects
branches and builds appropriate PostgreSQL connection strings for non-production
environments (staging, dev, preview).

Features of `syncNeonEnvVars`:
- Fetches branch-specific database credentials from Neon API
- Generates all standard Postgres connection strings (DATABASE_URL, POSTGRES_URL,
  POSTGRES_PRISMA_URL, etc.) with both pooled and unpooled variants
- Supports custom database name, role name, and env var prefix options
- Skips automatically in Vercel environments (Neon's Vercel integration handles this)
- Skips for production environments (designed for preview/staging/dev branches)

Improvements to `syncVercelEnvVars`:
- When running in a Vercel build environment (detected via VERCEL env var),
  values are now read from process.env instead of the Vercel API response
- This ensures the build uses the actual runtime values Vercel provides
- Removed embedded Neon-specific logic (now handled by separate extension)
- Simplified and cleaned up the extension code

Documentation updates for both extensions with usage examples and configuration
options.
2025-12-03 16:03:41 +01:00
..
2025-08-18 12:34:55 +01:00
2025-11-14 09:42:20 +00:00
2025-11-14 09:42:20 +00:00
2025-08-18 12:34:55 +01:00
2025-08-18 12:34:55 +01:00
2025-08-18 12:34:55 +01:00
2025-11-14 09:42:20 +00:00
2025-08-18 12:34:55 +01:00
2025-08-18 12:34:55 +01:00
2025-08-22 15:37:35 +01:00
2025-08-18 12:34:55 +01:00
2025-08-18 12:34:55 +01:00
2025-08-18 12:34:55 +01:00
2025-08-18 12:34:55 +01:00
2025-08-18 12:34:55 +01:00

Development

Install and initial setup

pnpm install

Running the app

pnpm run dev --filter docs

View the app locally

It runs locally here: http://localhost:3050