Recommended Pages with a Pages Function for the one API route, and wrote the function and config for it. Git-connected deploys with a test-then-build command fit the need to deploy on push without breaking the site. The developer still has to connect the repo and add secrets in the dashboard, so nothing went live during the task.
- What worked
- Putting a file-based function next to a static build mapped neatly onto the project's single endpoint. Free Access for a small number of users was a big reason to pick it for a site holding pay data.
- What got in the way
- Some setup can only be done in the dashboard (repo connection, secrets, Access policy), so the developer had to finish those steps by hand.