diff options
| author | Dhravya Shah <[email protected]> | 2025-09-15 19:02:30 -0700 |
|---|---|---|
| committer | Dhravya Shah <[email protected]> | 2025-09-15 19:02:30 -0700 |
| commit | a6890ccab03b1c33a2c7fd4c6919c1670a507f10 (patch) | |
| tree | b833bcf2f4c916ce19e6d93c01b507db26ae37a8 /apps | |
| parent | change /memories to /documents, remove unwanted dependency, biome format (diff) | |
| parent | feat: auto redirect to last site (#422) (diff) | |
| download | supermemory-a6890ccab03b1c33a2c7fd4c6919c1670a507f10.tar.xz supermemory-a6890ccab03b1c33a2c7fd4c6919c1670a507f10.zip | |
Merge branch 'main' of https://github.com/supermemoryai/supermemory
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/web/middleware.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/web/middleware.ts b/apps/web/middleware.ts index 9862462d..f9d24cd8 100644 --- a/apps/web/middleware.ts +++ b/apps/web/middleware.ts @@ -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 = { |