fix: auth routing
This commit is contained in:
@@ -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}`
|
||||
|
||||
Reference in New Issue
Block a user