No API behind this page

The admin needs something that can write files. A browser on its own cannot edit data/news.json.

On your own machine

node server/server.js

Then open http://localhost:8000/admin. Saves edit your working tree for you to review and push.

Opening admin.html by double-clicking it will not work — the page needs to be served over http://.

On the deployed site

api/ should be serving /api/session. If it is not, the deployment did not pick up the functions — check the Vercel build log. See server/README.md.

← Back to the site