File tree 2 files changed +4
-4
lines changed 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ import {
5
5
DRAFT_MODE_COOKIE_NAME ,
6
6
} from "./draft-constants"
7
7
import type { NextRequest } from "next/server"
8
- import type { NextDrupal } from "./next-drupal"
8
+ import type { NextDrupalBase } from "./next-drupal-base "
9
9
10
10
export async function enableDraftMode (
11
11
request : NextRequest ,
12
- drupal : NextDrupal
12
+ drupal : NextDrupalBase
13
13
) : Promise < Response | never > {
14
14
// Validate the draft request.
15
15
const response = await drupal . validateDraftUrl ( request . nextUrl . searchParams )
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import { NextRequest } from "next/server"
12
12
import {
13
13
DRAFT_DATA_COOKIE_NAME ,
14
14
DRAFT_MODE_COOKIE_NAME ,
15
- NextDrupal ,
15
+ NextDrupalBase ,
16
16
} from "../../src"
17
17
import { BASE_URL , spyOnFetch } from "../utils"
18
18
import {
@@ -50,7 +50,7 @@ describe("enableDraftMode()", () => {
50
50
const request = new NextRequest (
51
51
`https://example.com/api/draft?${ searchParams } `
52
52
)
53
- const drupal = new NextDrupal ( BASE_URL )
53
+ const drupal = new NextDrupalBase ( BASE_URL )
54
54
const draftModeCookie : ResponseCookie = {
55
55
name : DRAFT_MODE_COOKIE_NAME ,
56
56
value : "some-secret-key" ,
You can’t perform that action at this time.
0 commit comments