# sanity-plugin-dashboard-widget-now-temp

> Sanity Studio Dashboard Widget for triggering Now.sh builds and deployments.

Latest version **0.0.5** (published 2020-03-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install sanity-plugin-dashboard-widget-now-temp
pnpm add sanity-plugin-dashboard-widget-now-temp
yarn add sanity-plugin-dashboard-widget-now-temp
bun add sanity-plugin-dashboard-widget-now-temp
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2020-03-27 |
| First published | 2020-03-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 17.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ján Bočínec |
| Maintainers | johnnypea |
| Keywords | sanity, plugin, part, dashboard, widget, now, zeit |

## Links

- npm: https://www.npmjs.com/package/sanity-plugin-dashboard-widget-now-temp
- Repository: https://github.com/johnnypea/sanity-plugin-dashboard-widget-now
- Issues: https://github.com/johnnypea/sanity-plugin-dashboard-widget-now/issues
- npm.io page: https://npm.io/package/sanity-plugin-dashboard-widget-now-temp

## Dependencies (8)

- [react](https://npm.io/package/react.md) ^16.12.0
- [moment](https://npm.io/package/moment.md) ^2.24.0
- [@sanity/base](https://npm.io/package/@sanity/base.md) ^0.147.8
- [react-moment](https://npm.io/package/react-moment.md) ^0.9.7
- [@iconify/react](https://npm.io/package/@iconify/react.md) ^1.1.3
- [@sanity/client](https://npm.io/package/@sanity/client.md) ^0.147.3
- [@sanity/image-url](https://npm.io/package/@sanity/image-url.md) ^0.140.17
- [@iconify/icons-twemoji](https://npm.io/package/@iconify/icons-twemoji.md) ^1.0.7

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.0.5 (latest) — 2020-03-27
- 0.0.4 — 2020-03-26
- 0.0.2 — 2020-03-26
- 0.0.1 — 2020-03-26

## README

# Sanity Dashboard Widget: Now.sh

Sanity Studio Dashboard Widget for triggering Now.sh deployments.

## Installing

### Install the dashboard plugin

To get dashboard support in Sanity Studio in general:

`sanity install @sanity/dashboard`

### Install the Now.sh widget plugin

`sanity install sanity-plugin-dashboard-widget-now`

## Configuring

1. Implement your own dashboardConfig. In your `sanity.json` file, append the following line to the `parts` array:

```json
{
  "implements": "part:@sanity/dashboard/config",
  "path": "src/dashboardConfig.js"
}
```

2. Create the file `src/dashboardConfig.js` and include the `now` widget config like this:

```js
export default {
  widgets: [
    {
      name: 'now',
      options: {
        nowConfig: {
          // https://zeit.co/account/tokens
          token: '___TOKEN___', 
          // https://zeit.co/docs/v2/more/deploy-hooks
          deployHook: '___DEPLOY_HOOK___',
          // https://zeit.co/docs/api?query=tokens#endpoints/teams/list-all-your-teams
          teamId: '___TEAM_ID___',
          // https://zeit.co/docs/api?query=tokens#endpoints/projects/get-all-projects
          projectId: '___PROJETC_ID___'
        }
      }
    }
  ]
}
```

### Widget options

- `token` -  These tokens allow other apps to control your whole account. Be careful!
- `deployHook` -  Deploy Hooks allow you to create URLs that accept HTTP POST requests in order to trigger deployments and re-run the Build Step (https://zeit.co/docs/v2/build-step).
- `teamId` -  List deployments of the team matching the specified `teamId`. You can get `teamId` by using the teams endpoint (https://zeit.co/docs/api?query=tokens#endpoints/teams/list-all-your-teams) and obtaining the id of a team.
- `projectId` -  Filter deployments from the given `projectId`.

---
_Source: https://npm.io/package/sanity-plugin-dashboard-widget-now-temp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
