Viscision
Viscision
CCConvex Community
Created by Viscision on 4/17/2025 in #self-hosted
Everything seems to be working except
Yea I've currently given up on trying to get it to work. I feel like I have tried everything but nothing seems to work so far. If you would like to see I can post some screenshots from my self hosted dashboard and maybe it could help out but at this point I'm not sure what to do
3 replies
CCConvex Community
Created by Viscision on 4/17/2025 in #support-community
Auth Provider Discovery Failed
Okay thanks! I will send you a dm
18 replies
CCConvex Community
Created by Viscision on 4/17/2025 in #support-community
Auth Provider Discovery Failed
No description
18 replies
CCConvex Community
Created by Viscision on 4/17/2025 in #support-community
Auth Provider Discovery Failed
No description
18 replies
CCConvex Community
Created by Viscision on 4/17/2025 in #support-community
Auth Provider Discovery Failed
No description
18 replies
CCConvex Community
Created by Viscision on 4/17/2025 in #support-community
Auth Provider Discovery Failed
It was too long had to upload as a txt file hope that is fine
18 replies
CCConvex Community
Created by Viscision on 4/17/2025 in #support-community
Auth Provider Discovery Failed
18 replies
CCConvex Community
Created by Viscision on 4/17/2025 in #support-community
Auth Provider Discovery Failed
No description
18 replies
CCConvex Community
Created by Viscision on 4/17/2025 in #support-community
Auth Provider Discovery Failed
This is my middleware.ts file for next.js
import {
convexAuthNextjsMiddleware,
createRouteMatcher,
nextjsMiddlewareRedirect,
} from "@convex-dev/auth/nextjs/server";

const isAuthPage = createRouteMatcher(["/auth(.*)"]);
const isProtectedRoute = createRouteMatcher(["/games(.*)", "/leaderboard(.*)"]);

export default convexAuthNextjsMiddleware(async (request, { convexAuth }) => {
if (isAuthPage(request) && (await convexAuth.isAuthenticated())) {
return nextjsMiddlewareRedirect(request, "/games");
}
if (isProtectedRoute(request) && !(await convexAuth.isAuthenticated())) {
return nextjsMiddlewareRedirect(request, "/");
}
});

export const config = {
// The following matcher runs middleware on all routes
// except static assets.
matcher: ["/((?!.*\\..*|_next).*)", "/", "/(api|trpc)(.*)"],
};
import {
convexAuthNextjsMiddleware,
createRouteMatcher,
nextjsMiddlewareRedirect,
} from "@convex-dev/auth/nextjs/server";

const isAuthPage = createRouteMatcher(["/auth(.*)"]);
const isProtectedRoute = createRouteMatcher(["/games(.*)", "/leaderboard(.*)"]);

export default convexAuthNextjsMiddleware(async (request, { convexAuth }) => {
if (isAuthPage(request) && (await convexAuth.isAuthenticated())) {
return nextjsMiddlewareRedirect(request, "/games");
}
if (isProtectedRoute(request) && !(await convexAuth.isAuthenticated())) {
return nextjsMiddlewareRedirect(request, "/");
}
});

export const config = {
// The following matcher runs middleware on all routes
// except static assets.
matcher: ["/((?!.*\\..*|_next).*)", "/", "/(api|trpc)(.*)"],
};
18 replies
CCConvex Community
Created by Viscision on 4/17/2025 in #support-community
Auth Provider Discovery Failed
Auth should be completely working as it was 100% working when I was using convex cloud idk if I am just missing something or a step with convex auth and self hosting but I followed the guide exactly
18 replies
CCConvex Community
Created by Viscision on 4/17/2025 in #support-community
Auth Provider Discovery Failed
No description
18 replies
CCConvex Community
Created by Viscision on 4/17/2025 in #support-community
Auth Provider Discovery Failed
Yea nothing seems to work
18 replies