-
SummaryI've created a very minimal app (for a teleprompter tool) at https://github.com/Wursteintopf/teleprompter. For some reason my middleware (placed at src/middleware.ts as it should be) runs completely fine in development, but it does not get triggered on production. So when starting next with Additional informationNo response Example |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
Rather weird... I found an issue in the supabase/ssr Github, but it doesn't sound like it is the same issue at all.. Anyway, since its been two days without a solution, could you try to empty the contents of the middleware and just return export function middleware() {
console.count("Middleware");
return NextResponse.next();
} Does that run? Here is the issue I found: https://github.com/supabase/auth-helpers/issues/673 |
Beta Was this translation helpful? Give feedback.
-
Rather weird indeed 😕 But no, even this minimal middleware does not run in production mode:
I even tried a redirect in case it just silences the console for some reason, but it does not run. Again runs flawlessly when starting with |
Beta Was this translation helpful? Give feedback.
-
also failed fetch in production mode
|
Beta Was this translation helpful? Give feedback.
So, a restructure of the docker setup indeed did the trick. To be honest, I am still not entirely sure which file I was missing to mount correctly, but it works now. Thanks for pointing me in the right direction @icyJoseph!