Skip to content

Commit 3353d66

Browse files
Update demos/middleware/middleware.ts
Co-authored-by: Nick Taylor <[email protected]>
1 parent f04c6b6 commit 3353d66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demos/middleware/middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export async function middleware(req: NextRequest) {
3737
}
3838

3939
if (pathname.startsWith('/request-rewrite')) {
40-
// request.rewrite() should return the MiddlewareResponse obj instead of the Response obj
40+
// request.rewrite() should return the MiddlewareResponse object instead of the Response object.
4141
const res = await request.rewrite('/static-rewrite')
4242
const message = `This was static (& escaping test &amp;) but has been transformed in ${req.geo?.city}`
4343

0 commit comments

Comments
 (0)