I have a page that I want to be my index.html because it will be built throughout the day to save on queries. It is a nextjs/react app on vercel. My index file is in public. When I go to index.html the header and footer show but the rest returns 404. Other static html pages in public folder display just fine.
How do I have index.html served first and if someone clicks on a button it then goes to index.js?
I've tried the below and more:
Code, configuration, and steps that reproduce this issue
"routes": [ { "src": "/(.*)", "dest": "/index.html", "continue": true, "has": [ { "type": "query", "key": "__nextStaticAsset" } ] } ]
"rewrites": [ { "source": "/", "destination": "/index.html" } ]
"rewrites": [ { "source": "/", "destination": "/index.html" }, { "source": "/(.*)", "destination": "/index.html" } ]
Project information
Environment (local, preview, production): Vercel prodOperating System:Node/Runtime Version:Package Manager: NPMProject Framework:Relevant Packages: