Skip to content

Commit 79d5963

Browse files
Miriaddashboard
andcommitted
chore: rename middleware.ts → proxy.ts for Next.js 16
Next.js 16 renamed Middleware to Proxy. Same functionality, just rename the file and the exported function. Co-authored-by: dashboard <dashboard@miriad.systems>
1 parent 284b003 commit 79d5963

File tree

3 files changed

+890
-38
lines changed

3 files changed

+890
-38
lines changed

middleware.ts renamed to proxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { createServerClient } from "@supabase/ssr";
22
import { NextResponse, type NextRequest } from "next/server";
33

4-
export async function middleware(request: NextRequest) {
4+
export async function proxy(request: NextRequest) {
55
let supabaseResponse = NextResponse.next({ request });
66

77
const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL;

0 commit comments

Comments
 (0)