File tree Expand file tree Collapse file tree 3 files changed +0
-7
lines changed
Expand file tree Collapse file tree 3 files changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,5 @@ NEXT_IMAGE_DOMAIN=site.example.com
88DRUPAL_CLIENT_ID = Retrieve this from /admin/config/services/consumer
99DRUPAL_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
1512DRUPAL_REVALIDATE_SECRET = Retrieve this from /admin/config/services/next
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,14 +3,12 @@ import { DrupalClient } from "next-drupal"
33const baseUrl : string = process . env . NEXT_PUBLIC_DRUPAL_BASE_URL || ""
44const clientId = process . env . DRUPAL_CLIENT_ID || ""
55const clientSecret = process . env . DRUPAL_CLIENT_SECRET || ""
6- const previewSecret = process . env . DRUPAL_PREVIEW_SECRET
76
87export const drupal = new DrupalClient ( baseUrl , {
98 auth : {
109 clientId,
1110 clientSecret,
1211 } ,
13- previewSecret,
1412} )
1513
1614export const graphqlEndpoint = drupal . buildUrl ( "/graphql" )
You can’t perform that action at this time.
0 commit comments