About this skill
Official Netlify DB skill. The database that branches with the deploy preview.
Input and output contract
Input
A Netlify site that needs a database.
Output
A DB config that follows the preview.
Workflow steps
- 1Postgres
- 2Branches
- 3Previews
Prompt Notebook
You sayGive previews their own DB.
It returnsNetlify DB branch per preview. DATABASE_URL injected.
You sayMigrate on deploy.
It returnsBuild command runs migrate. Production is a different branch.
More from Netlify
Netlify Deploy
Communitynetlify-deploy
Official skill for CLI, previews, and a deploy that finishes.
Netlify Functions
Communitynetlify-functions
Serverless endpoints the official way.
Netlify Edge Functions
Communitynetlify-edge
Edge middleware the official way.