Redirect regular members to coming-soon page after magic link login

Instead of sending members directly to the wiki (where they hit
Outline's login page and have to click again), land them on the
coming-soon page which shows a welcome message and wiki link.
This commit is contained in:
Jennie Robinson Faber 2026-03-19 13:02:12 +00:00
parent 2705d171bd
commit c785a23910

View file

@ -52,8 +52,8 @@ export default defineEventHandler(async (event) => {
maxAge: 60 * 60 * 24 * 7 // 7 days
})
// Admins go to admin dashboard, everyone else goes to the wiki
const redirectUrl = member.role === 'admin' ? '/admin' : 'https://wiki.ghostguild.org'
// Admins go to admin dashboard, everyone else goes to coming-soon (with wiki link)
const redirectUrl = member.role === 'admin' ? '/admin' : '/coming-soon'
await sendRedirect(event, redirectUrl, 302)
} catch (err) {