Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Helper methods and type definitions for Sanity Blueprints

NotificationsYou must be signed in to change notification settings

sanity-io/blueprints-node

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.

Usage

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

Stars

Watchers

Forks

Contributors5


[8]ページ先頭

©2009-2025 Movatter.jp