Fix sign-in links and legacy JWT after Periscope rebrand.

/login 404ed from marketing CTAs; redirect to /sign-in and accept pinscope-local tokens plus dual-host CORS so login works on both hostnames.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-13 20:12:53 +02:00
co-authored by Cursor
parent 8d2b85600f
commit dc364f5926
8 changed files with 51 additions and 23 deletions
+6
View File
@@ -27,6 +27,12 @@ const nextConfig: NextConfig = {
canvas: { browser: "" },
},
},
async redirects() {
return [
{ source: "/login", destination: "/sign-in", permanent: false },
{ source: "/register", destination: "/sign-up", permanent: false },
];
},
async headers() {
return [
{