fix: allow public world share pages
This commit is contained in:
parent
39324778f5
commit
607fd3bc3e
3
proxy.ts
3
proxy.ts
@ -258,7 +258,8 @@ export async function proxy(request: NextRequest) {
|
||||
pathname === "/login" ||
|
||||
pathname === "/register" ||
|
||||
pathname === "/riji" ||
|
||||
pathname.startsWith("/riji/");
|
||||
pathname.startsWith("/riji/") ||
|
||||
pathname.startsWith("/worlds/share/");
|
||||
|
||||
// 未登录用户允许访问公开页面,其余需要登录
|
||||
if (!token && !isPublicPage) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user