jane
jane
CDCloudflare Developers
Created by wilburpowery on 7/12/2024 in #pages-help
Next.js site with static forms plugin
Hi! Ensure that your _middleware.ts file is correctly configured. Check if the file is in the correct location (usually /pages or /src/pages). Verify that the middleware function is properly exported. Example: typescript import { NextResponse } from 'next/server' import type { NextRequest } from 'next/server' export function middleware(request: NextRequest) { // Your middleware logic here return NextResponse.next() }
2 replies