Skip to content

Commit 111ec45

Browse files
authored
Fix env variable used for API token (GitbookIO#241)
1 parent e39e1db commit 111ec45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export async function middleware(request: NextRequest) {
106106
const resolved = await withAPI(
107107
new GitBookAPI({
108108
endpoint: apiEndpoint,
109-
authToken: process.env.GITBOOK_API_TOKEN,
109+
authToken: process.env.GITBOOK_TOKEN,
110110
userAgent: userAgent(),
111111
}),
112112
() => lookupSpaceForURL(mode, request, inputURL),

0 commit comments

Comments
 (0)