Website: https://polite-malasada-3aad20.netlify.app/
I am deploying a static HTML Next.js site and am trying to do a redirect based on the user’s role.
Here is my netlify.toml
file:
[build]
command = "yarn build && yarn export"
publish = "out"
functions = "netlify/functions"
[functions]
node_bundler = "esbuild"
[[redirects]]
from = "/home/*"
to = "/home/:splat"
force = true
status = 200
conditions = {Role = ["personal", "elite"]}
Netlify deploy logs show that the redirect seems to be processed successfully:
However, attempting to navigate to Wires Only Club - Grow your business results in a 404. I can only get to that route if I use useRouter().push
from Next.js.
I am using @netlify/plugin-nextjs": "^4.35.0"
and "next": "13.3.0"
.
I have verified via the Netlify UI that the user does indeed have the correct role.
Any idea what might be happening here?