feat: auto redirect to last site (#422)

This commit is contained in:
CodeWithShreyans 2025-09-14 23:54:15 +00:00
parent 8de2099e14
commit 03a2397fc1
No known key found for this signature in database
GPG key ID: A1B43A0A7B74CD2C

View file

@ -42,7 +42,13 @@ export default async function middleware(request: Request) {
console.debug("[MIDDLEWARE] Passing through to next handler")
console.debug("[MIDDLEWARE] === MIDDLEWARE END ===")
return NextResponse.next()
const response = NextResponse.next()
response.cookies.set({
name: "last-site-visited",
value: "https://app.supermemory.ai",
domain: "supermemory.ai",
})
return response
}
export const config = {