Adds a new /status router and page to check and display the status of configurable websites every 1 minute.
API Route Implementation: Adds pages/api/status.ts to handle status checks. This file includes a function to fetch the status of websites specified in the WEBSITES environment variable, and returns their HTTP status codes or error messages.
Status Page Creation: Adds pages/status.tsx to display the status of websites. This page fetches the latest status from the /api/status endpoint every 1 minute and displays it in a table format.
Documentation Update: Updates README.md to include information about the new /status router, its functionality, and how to configure websites for status checks in the vercel.json file.
Deployment Configuration: Adds vercel.json to configure the deployment on Vercel, including routes for the new API and page, and an environment variable for website URLs to monitor.
Related to #5
Adds a new
/status
router and page to check and display the status of configurable websites every 1 minute.pages/api/status.ts
to handle status checks. This file includes a function to fetch the status of websites specified in theWEBSITES
environment variable, and returns their HTTP status codes or error messages.pages/status.tsx
to display the status of websites. This page fetches the latest status from the/api/status
endpoint every 1 minute and displays it in a table format.README.md
to include information about the new/status
router, its functionality, and how to configure websites for status checks in thevercel.json
file.vercel.json
to configure the deployment on Vercel, including routes for the new API and page, and an environment variable for website URLs to monitor.For more details, open the Copilot Workspace session.