Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix: add api/version and api/desktop to public routes (#12194)

Inneiea81cd42aaf5
diff --git a/src/libs/next/proxy/define-config.ts b/src/libs/next/proxy/define-config.ts
index 60d719d5afe..87f54013511 100644
--- a/src/libs/next/proxy/define-config.ts
+++ b/src/libs/next/proxy/define-config.ts
@@ -165,6 +165,9 @@ export function defineConfig() {
'/api/dev(.*)',
'/webapi(.*)',
'/trpc(.*)',
+ // version
+ '/api/version',
+ '/api/desktop/(.*)',
// better auth
'/signin',
'/signup',
@@ -180,6 +183,7 @@ export function defineConfig() {
'/market-auth-callback',
// public share pages
'/share(.*)',
+
]);
const betterAuthMiddleware = async (req: NextRequest) => {