Skip to content

Commit 7cc62e2

Browse files
committed
test
1 parent 4a64756 commit 7cc62e2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/gitbook/src/middleware.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,15 @@ export async function middleware(request: NextRequest) {
244244
const target = new URL(rewritePathname, request.nextUrl.toString());
245245
target.search = url.search;
246246

247+
if (1) {
248+
return NextResponse.json({ test: 'test' }, {
249+
headers: {
250+
'x-gitbook-version': buildVersion(),
251+
'x-gitbook-test': 'works'
252+
}
253+
});
254+
}
255+
247256
const response = writeCookies(
248257
NextResponse.rewrite(target, {
249258
request: {

0 commit comments

Comments
 (0)