mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-05-19 07:42:43 +00:00
feat: auto redirect to last site (#422)
This commit is contained in:
parent
8de2099e14
commit
03a2397fc1
1 changed files with 7 additions and 1 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue