@sanity/vercel-protection-bypass 5.0.3 → 5.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/index.d.ts.map +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -17,9 +17,9 @@ Add the tool your `sanity.config.ts`:
|
|
|
17
17
|
|
|
18
18
|
```ts
|
|
19
19
|
// ./sanity.config.ts
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
20
|
+
import {vercelProtectionBypassTool} from '@sanity/vercel-protection-bypass'
|
|
21
|
+
import {defineConfig} from 'sanity'
|
|
22
|
+
import {presentationTool} from 'sanity/presentation'
|
|
23
23
|
|
|
24
24
|
export default defineConfig({
|
|
25
25
|
// ... other options
|
|
@@ -28,15 +28,15 @@ export default defineConfig({
|
|
|
28
28
|
presentationTool({
|
|
29
29
|
previewUrl: {
|
|
30
30
|
// @TODO change to the URL of the application, or `location.origin` if it's an embedded Studio
|
|
31
|
-
origin:
|
|
31
|
+
origin: 'http://localhost:3000',
|
|
32
32
|
previewMode: {
|
|
33
|
-
enable:
|
|
33
|
+
enable: '/api/draft',
|
|
34
34
|
},
|
|
35
35
|
},
|
|
36
36
|
}),
|
|
37
37
|
vercelProtectionBypassTool(),
|
|
38
38
|
],
|
|
39
|
-
})
|
|
39
|
+
})
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
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.
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"mappings":";UAUiB,4BAAA;EACf,IAAA;EACA,KAAA;EACA,IAAA,GAAO,KAAA,CAAM,aAAA;AAAA;AAAA,cAkCF,0BAAA,EAA4B,MAAA,CAAO,4BAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/vercel-protection-bypass",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.4",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"sanity",
|
|
6
6
|
"sanity-plugin",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"@sanity/ui": "^3.1.11"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@sanity/client": "7.
|
|
37
|
-
"@sanity/pkg-utils": "^10.
|
|
38
|
-
"@types/react": "^19.2.
|
|
36
|
+
"@sanity/client": "7.14.1",
|
|
37
|
+
"@sanity/pkg-utils": "^10.4.1",
|
|
38
|
+
"@types/react": "^19.2.10",
|
|
39
39
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
40
40
|
"eslint": "^9.39.2",
|
|
41
|
-
"react": "^19.2.
|
|
42
|
-
"sanity": "^5.
|
|
41
|
+
"react": "^19.2.4",
|
|
42
|
+
"sanity": "^5.7.0",
|
|
43
43
|
"@repo/eslint-config": "0.0.0",
|
|
44
44
|
"@repo/package.config": "0.0.0",
|
|
45
45
|
"@repo/tsconfig": "0.0.0"
|