T
TanStack3mo ago
ratty-blush

Can't redirect from apex domain to www because global middleware doesn't work / Cloudflare workers

I'm trying to use global middleware to redirect from the apex domain to www and can't because the global middleware isn't being registered. Here's what I've tried: 1. Calling the registerGlobalMiddleware fn in the root of the project (app/global-middleware.ts). This is what the docs say to do. 2. Calling the registerGlobalMiddleware fn in the src dir of the project (app/src/global-middleware.ts). 3. Calling it in src/router.tsx 4. Calling it in src/server.tsx 5. Calling it in src/client.tsx I'm using v1.121.12
1 Reply
deep-jade
deep-jade3mo ago
Global middleware is not working after devinxi. Tem team is working on it.

Did you find this page helpful?