Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions starters/basic-starter/lib/drupal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ const clientId = process.env.DRUPAL_CLIENT_ID as string
const clientSecret = process.env.DRUPAL_CLIENT_SECRET as string

export const drupal = new NextDrupal(baseUrl, {
auth: {
clientId,
clientSecret,
},
// Enable to use authentication
// auth: {
// clientId,
// clientSecret,
// },
// withAuth: true,
// debug: true,
})
10 changes: 6 additions & 4 deletions starters/pages-starter/lib/drupal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ const clientId = process.env.DRUPAL_CLIENT_ID as string
const clientSecret = process.env.DRUPAL_CLIENT_SECRET as string

export const drupal = new NextDrupalPages(baseUrl, {
auth: {
clientId,
clientSecret,
},
// Enable to use authentication
// auth: {
// clientId,
// clientSecret,
// },
// withAuth: true,
useDefaultEndpoints: true,
// debug: true,
})
Loading