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

* 🐛 fix: add api/version and api/desktop to public routes

These API endpoints should be accessible without authentication.

* 🔧 chore: move location
This commit is contained in:
Innei
2026-02-08 16:27:35 +08:00
committed by GitHub
parent 882de51b8a
commit ea81cd42aa

View File

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