Skip to content

Commit 449087a

Browse files
committed
feat(next-drupal): remove unneeded previewSecret option/env variable
Fixes #661
1 parent 8170e45 commit 449087a

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

.env.example

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,5 @@ NEXT_IMAGE_DOMAIN=site.example.com
88
DRUPAL_CLIENT_ID=Retrieve this from /admin/config/services/consumer
99
DRUPAL_CLIENT_SECRET=Retrieve this from /admin/config/services/consumer
1010

11-
# Required for Preview Mode
12-
DRUPAL_PREVIEW_SECRET=Retrieve this from /admin/config/services/next
13-
1411
# Required for On-demand Revalidation
1512
DRUPAL_REVALIDATE_SECRET=Retrieve this from /admin/config/services/next

.turbo/turbo-build.log

Lines changed: 0 additions & 2 deletions
This file was deleted.

lib/drupal.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@ import { DrupalClient } from "next-drupal"
33
const baseUrl: string = process.env.NEXT_PUBLIC_DRUPAL_BASE_URL || ""
44
const clientId = process.env.DRUPAL_CLIENT_ID || ""
55
const clientSecret = process.env.DRUPAL_CLIENT_SECRET || ""
6-
const previewSecret = process.env.DRUPAL_PREVIEW_SECRET
76

87
export const drupal = new DrupalClient(baseUrl, {
98
auth: {
109
clientId,
1110
clientSecret,
1211
},
13-
previewSecret,
1412
})
1513

1614
export const graphqlEndpoint = drupal.buildUrl("/graphql")

0 commit comments

Comments
 (0)