fix: auth routing

This commit is contained in:
Adam
2026-02-06 12:20:50 -06:00
parent 6a5c1a74f1
commit f256a65b59
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}`