fix: allow public world share pages
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
Your Name 2026-04-05 21:38:05 +08:00
parent 39324778f5
commit 607fd3bc3e

View File

@ -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) {