https://github.com/codercatdev/sanity-plugin-ajonp-gcp-cloud-build
https://github.com/codercatdev/sanity-plugin-ajonp-gcp-cloud-build
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/codercatdev/sanity-plugin-ajonp-gcp-cloud-build
- Owner: codercatdev
- Created: 2019-11-13T23:57:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-04T20:21:39.000Z (over 3 years ago)
- Last Synced: 2025-05-11T04:53:49.572Z (about 1 year ago)
- Language: JavaScript
- Size: 233 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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`
}
}
```