@ajonp/sanity-plugin-ajonp-gcp-cloud-build
v0.0.6
Published
Dashboard Widget for Google Cloud Platform Cloud Build
Downloads
20
Maintainers
Readme
sanity-plugin-ajonp-gcp-cloud-build
Use Google Cloud Platform for building you sanity studio.
Get Google Cloud Platform Credential
clientId
projectId
scope
Can be left the same
How to use
Install plugin
npm install @ajonp/sanity-plugin-ajonp-gcp-cloud-build
Add plugin to project
sanity.json
add @ajonp/sanity-plugin-ajonp-gcp-cloud-build
"plugins": [
"@sanity/base",
"@sanity/components",
"@sanity/default-layout",
"@sanity/default-login",
"@sanity/dashboard",
"@sanity/desk-tool",
"dashboard-widget-structure-menu",
"dashboard-widget-document-list",
"dashboard-widget-netlify",
"@sanity/code-input",
"ajonp-studio-logo",
"@ajonp/sanity-plugin-ajonp-gcp-cloud-build"
],
Update Dashboard
Add similar to the following
studio/dashBoardConfig.js
{
name: 'ajonp-gcp-cloud-build',
layout: { width: 'medium' },
options: {
clientId: '535596779905-t1p17p88psrcat5ptvsovc6ktv4ovten.apps.googleusercontent.com',
projectId: 'ajonp-ajonp-com',
scope: `https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/cloud-platform`
}
}