fix: auth routing

This commit is contained in:
Adam 2026-02-06 12:20:50 -06:00
commit f256a65b59
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
3 changed files with 4 additions and 5 deletions

View file

@ -91,6 +91,8 @@ export function strip(pathname: string) {
export function route(locale: Locale, pathname: string) {
const next = strip(pathname)
if (next.startsWith("/docs")) return next
if (next.startsWith("/auth")) return next
if (next.startsWith("/workspace")) return next
if (locale === "en") return next
if (next === "/") return `/${locale}`
return `/${locale}${next}`