TanStackT
TanStack10mo ago
6 replies
hurt-tomato

How does URL rewrite work in Tanstack query?

I have updated my app.config.ts file with nitro config to rewrite / to /home

app.config.ts
    routeRules: {
      "/": {
        proxy: {
          to: "/home"
        }
      }
    }


But because / route does not exist, whenever I visit / i get a flash of /home before getting the 404 view
Was this page helpful?