Thank you for sharing your vercel.json configuration. I’ve reviewed it, and it appears that the current rewrite rule should actually work for both the root path (app.acme.com) and any subpaths (app.acme.com/anypath). The /:path* pattern in the source field is designed to match both scenarios.
However, since you’re experiencing an issue with the root path not being redirected, there might be other factors to consider:
Try clearing your browser cache or testing in an incognito/private browsing window.
Ensure you’ve redeployed your project after updating the vercel.json file.
Check for any other routing rules in your application that might be overriding this rewrite.
Sometimes, changes may take a short while to propagate across Vercel’s Edge Network.
If you’re still facing issues after considering these factors, you could try an alternative configuration that explicitly handles both cases:
Hi, @pawlean ! Thank you very much for your response.
I have implemented all your suggestions and now still can’t access ‘/app/index.html’ through the root path ‘app.acme.com’ even use the alternative configuration.
Is there any way to debug this issue?
Looking forward your response.
Than you and have a nice day!