So I have issue in web server. The thing is I don't have index.html instead I have pages/home/home.html. so how can I tell vercel to use my home.html to display in the domain. Can we change that in any settings?
So I have issue in web server. The thing is I don't have index.html instead I have pages/home/home.html. so how can I tell vercel to use my home.html to display in the domain. Can we change that in any settings?
Hi, Mayur! Welcome to the Vercel Community 👋
You can configure Vercel to use your pages/home/home.html file as the main page for your domain by creating a vercel.json configuration file with rewrites. This file should be placed in the root of your project.
{ "rewrites": [ { "source": "/", "destination": "/pages/home/home.html" }, { "source": "/:path*", "destination": "/:path*" } ]}This configuration tells Vercel to:
/pages/home/home.html file when someone visits the root of your domainThe rewrites are processed in order, so the first matching rule will be used.
Let us know how you get on!