Skip to content

Instantly share code, notes, and snippets.

@devotdev
Created January 31, 2025 10:06
Show Gist options
  • Select an option

  • Save devotdev/da92ca5d2530948fa3dca02956827076 to your computer and use it in GitHub Desktop.

Select an option

Save devotdev/da92ca5d2530948fa3dca02956827076 to your computer and use it in GitHub Desktop.
Middleware basic setup
import { NextResponse } from 'next/server';
export function middleware(request) {
return NextResponse.next(); // Allows the request to proceed without modification
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment