1.0.23 • Published 5 months ago
@sanity/vercel-protection-bypass v1.0.23
@sanity/vercel-protection-bypass
npm install @sanity/vercel-protection-bypassThis package is used together with sanity/presentation to configure it to work with Vercel's Deployment Protection feature.
The tool is only needed for setup, once it's configured you can safely uninstall it.
Add the tool your sanity.config.ts:
// ./sanity.config.ts
import {vercelProtectionBypassTool} from '@sanity/vercel-protection-bypass'
import {defineConfig} from 'sanity'
import {presentationTool} from 'sanity/presentation'
export default defineConfig({
// ... other options
plugins: [
// ... other plugins
presentationTool({
previewUrl: {
// @TODO change to the URL of the application, or `location.origin` if it's an embedded Studio
origin: 'http://localhost:3000',
previewMode: {
enable: '/api/draft',
},
},
}),
vercelProtectionBypassTool(),
],
})You should see a new Vercel Protection Bypass tab in the Studio's settings. Click it and follow the instructions to set up the tool.
1.0.23
5 months ago
1.0.22
6 months ago
1.0.21
6 months ago
1.0.20
6 months ago
1.0.19
7 months ago
1.0.18
7 months ago
1.0.17
7 months ago
1.0.16
7 months ago
1.0.15
8 months ago
1.0.14
8 months ago
1.0.13
8 months ago
1.0.12
8 months ago
1.0.11
8 months ago
1.0.10
9 months ago
1.0.9
9 months ago
1.0.8
9 months ago
1.0.7
9 months ago
1.0.6
9 months ago
1.0.5
9 months ago
1.0.4
9 months ago
1.0.3
9 months ago
1.0.2
9 months ago
1.0.2-release.0
10 months ago
1.0.1
10 months ago
1.0.0
10 months ago