- Notifications
You must be signed in to change notification settings - Fork1
sanity-io/blueprints-node
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Important
This package is currently in beta and may change. Refer to theCHANGELOG for details.
Helper methods for building valid Sanity Blueprints.
import{defineBlueprint,defineDocumentFunction,defineDocumentWebhook}from'@sanity/blueprints'exportdefaultdefineBlueprint({resources:[defineDocumentFunction({name:'fancy-report-function',src:'functions/create-fancy-report',memory:2,timeout:360,event:{on:['create','update'],filter:"_type == 'customer'",projection:"{totalSpend, lastOrderDate}",},env:{currency:'USD',},}),defineDocumentWebhook({name:'notification-webhook',url:'http://api.yourdomain.com/notifications/sanity',on:['create'],dataset:'production',})],})
About
Helper methods and type definitions for Sanity Blueprints
Resources
Code of conduct
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
Contributors5
Uh oh!
There was an error while loading.Please reload this page.