Next.js Discord

Discord Forum

500 error

Unanswered
marsianin posted this in #help-forum
Open in Discord
when I run my app on localhost, everything is ok. but on netlify I get 500 error

9 Replies

can you check the netlify logs to see the error...
i think: https://docs.netlify.com/functions/logs/ (i haven't used it before)
Sep 16, 03:35:33 PM: warning INFO: Clerk: The request to / is being redirected because there is no signed-in user, and the path is not included in ignoredRoutes or publicRoutes. To prevent this behavior, choose one of:Sep 16, 03:35:33 PM: warning 1. To make the route accessible to both signed in and signed out users, add "/" to the publicRoutes array passed to authMiddlewareSep 16, 03:35:33 PM: warning 2. To prevent Clerk authentication from running at all, add "/" to the ignoredRoutes array passed to authMiddlewareSep 16, 03:35:33 PM: warning 3. Pass a custom afterAuth to authMiddleware, and replace Clerk's default behavior of redirecting unless a route is included in publicRoutesSep 16, 03:35:33 PM: warning For additional information about middleware, please visit https://clerk.com/docs/nextjs/middlewareSep 16, 03:35:33 PM: warning (This log only appears in development mode, or if debug: true is passed to authMiddleware)

but public and ignored routes are ok
Araucanian herring
yeah same error is appearing sometimes
in my next app
have no clue what causes it but redeploying fixes it
after moving on bun that issue appeared in my app, I thought it was bun's problem but seems like its not
Araucanian herring
im using vercel btw for hosting