RIKKY ROY KOGANTIAtlas of curiosityKyrodigm

Notebook / Building apps

Deploying and monitoring websites and web apps

Choose a hosting setup, verify the public deployment, and prepare for outages, stale data, and unexpected costs.

Five checks for a site you can operate

  1. On the public domain

    Open the exact URL while signed out. Confirm the version and complete one real task, such as sending a form.

  2. While it’s running

    Test the alert for a failed task or stale scheduled content. A page can still load while either is broken.

  3. When a deploy goes wrong

    Rehearse restoring the previous version. Check whether database changes or cached assets can survive a code rollback.

Make sure you can keep the domain
Confirm registrar access, renewal and recovery so a lost login or expired card doesn’t take the site down.
Know what stops rising spend
Set a usage cap where supported. Check whether the host’s setting stops new work or only sends an alert.

Scope. This guide is a starting point for common checks. Research the rules and risks specific to your site, audience and launch markets. You can share this guide with an AI agent to help spot gaps. Verify its findings against current official sources.

All website and web app references

What to check before launch

Start here. Pick the simplest host that runs the site, test the actual deployment on your public domain, and make sure you’ll hear when the main task fails.

  • Before deploying
    • Use hosting that fits the site. Serve prebuilt pages as static files. Add a backend where you need to process requests or save data. Check plan terms for commercial use. Example setups.
    • Check the upload folder. Include hidden files. Keep .env, .dev.vars, and their variants out, and scan the generated files for credentials. Static deployment checks.
    • Rehearse the release. Test a hosted preview against test data. Keep previews private and record the build, settings, and services that will go live. Cloudflare deployment steps.
    • Verify the domain and email. Check HTTPS, main and alternate hostnames, and renewal access. If you’re moving DNS, verify that mail and existing subdomains still work after the switch. Domain cutover checks.
  • Before opening to visitors
    • Rehearse recovery. Keep a known-good deploy. If the site stores data, test restoring it separately and check that the older release can still read it. Rollback and restore.
    • Set costs and failure limits. Estimate hosting, storage, and paid calls. Check what each limit covers and what visitors see when it’s reached. Cost controls.
    • Make an alert reach someone. Set up an external uptime check and a check for the main task where practical. Test an alert and name who responds. Monitoring setup.
  • At launch and after
    • Try a real visitor’s path. Load the public homepage, a direct link, and a missing page. Confirm a real outcome, such as a form submission reaching the inbox. Verify that pages intended for search can be indexed. Public launch checks.
    • Check the public result. Confirm monitoring sees the live domain. If content updates on a schedule, verify its age on the public site and check that overdue updates alert you. Scheduled content.

Hosting, monitoring, and tool references checked November 21, 2026. The tools below are examples. Check plan terms, costs, and data handling before integrating one.

How to deploy, monitor, and recover

Choose hosting and servicesExample setups for a public site, a site with a form, and an app with accounts.
Site A practical starting setup
Portfolio, company site, blog, or prebuilt archive Use Cloudflare Workers Static Assets or Pages to serve the build. Add Better Stack for an external uptime check and Google Search Console if search visibility matters. A contact link can use your existing mailbox. Workers Static Assets · Cloudflare Pages · Better Stack uptime · Search Console.
Public pages with a contact form, feed, or small API Keep the pages static. Use a Worker or Pages Function for the dynamic route. If a form needs to send email, a transactional provider such as Resend can deliver it from a verified sender domain. Test receipt and check how failed deliveries are reported. Cloudflare Worker routing · Pages Functions · Resend domain verification.
Signed-in app with server rendering and user data Use Cloudflare Workers if your framework and runtime fit, or a compatible managed app host such as Vercel on a plan appropriate for your use. If the app needs a relational database, Supabase is one managed Postgres option. Add Sentry if you need browser and server error reports from the same release. Verify what your database plan can restore. Cloudflare framework guides · Vercel plans · Supabase backups · Sentry platform support.

Check plan terms. Vercel documents Hobby as personal and non-commercial. GitHub Pages restricts use as free hosting for an online business, e-commerce site, or commercial SaaS. For any provider handling form submissions, logs, or usage data, confirm what it collects, what it stores, and who can access it. Vercel Hobby terms · GitHub Pages limits · Visitor privacy checks.

Deploy and verify on CloudflareStart with a clean build. Check the hosted preview and then the public site.

A static example

  1. Build from a clean checkout. Commit the dependency lockfile, pin the build runtime, and match your local build command and output directory in the host. Inspect the actual output, such as Astro’s dist/, before uploading. Include hidden files and flag .env, .dev.vars, and their variants. Check the generated HTML, JavaScript, and downloads for embedded credentials or private data. Record the commit and build ID. Secret checks · Cloudflare Git builds.
  2. Configure static serving. Point Workers Static Assets at the output directory. Include a 404 page and configure it to return a real 404 status for missing URLs. For sites with dynamic routes, decide which requests need the Worker. Test redirects and security headers on both types of responses. Cloudflare’s asset _headers and _redirects files apply to static responses. Set the values you need in code for responses generated by the Worker. Cloudflare static routing · Worker routing · Headers · Redirects.
  3. Preview with separate data and credentials. Protect the hosted preview and alternate URLs with access controls, then verify signed-out behavior. If you have a form, email, payments, or jobs, use test recipients, credentials, and data. Check that previews cannot write production records or run the production schedule. Verify the production equivalents are configured before deploying. Workers preview protection · Pages preview deployments.
  4. Check the public deployment as a visitor. On the actual HTTPS domain, use a fresh browser session and test a regular page, a deep link, a real 404, and the main task. Use a marked test submission and verify delivery all the way to the inbox or database if applicable. Check response headers and the public data timestamp where relevant. If a page should appear in search, check that production access rules, noindex, canonical URLs, and the sitemap match that intent. Google indexing controls · Publishing checks.
  5. Compare with the previous release. Keep the last good deployment and a link to the production dashboard. Check errors, real task completion, and support feedback shortly after release. Decide ahead of time who can reverse a release and what failure would trigger it. Recovery steps.
Manage the domain, DNS and emailKnow who can renew the domain and how to recover control.
  • Own the domain and renewal. Use registrar and DNS accounts the site owner can recover. Turn on MFA, check the billing method and renewal deadline, and make sure recovery email remains reachable if the domain goes down. Choose a primary HTTPS hostname and redirect alternatives consistently. Cloudflare Custom Domains.
  • Copy and compare before changing nameservers. Export or record the old DNS settings, including existing subdomains, mail routing, and verification records. Compare them with the new provider’s records. If DNSSEC is enabled, follow the provider’s migration instructions and check the registrar’s existing DS record. A mismatched record can make the whole domain unreachable. Keep the old service available until the new domain is verified. Cloudflare nameserver migration and DNSSEC.
  • Verify from outside the host. Check certificate validity, the root domain and www, redirects, and other subdomains you meant to preserve. If email uses the domain, send and receive a test message from an outside account. For outbound mail, verify the provider’s SPF and DKIM settings and your DMARC policy. Check applicable receiver rules if you send bulk mail. Gmail sender requirements.
Set alerts and decide who respondsAn alert is useful when somebody can verify the problem and act on it.

What to monitor after deployment

Signal Where to look and what to check
Public availability and the main task Use Better Stack or a similar external monitor to check the public domain, HTTPS, and expected page content. An HTTP 200 can still return an error page. For a key form or account flow, use an automated browser check with a test account and synthetic data where safe. Verify the outcome in the inbox or application. Use a sandbox for anything that moves money or sends messages to real users. Better Stack uptime · Google SRE monitoring.
Browser errors and backend health Use Sentry or another error tracker when JavaScript failures are hard to diagnose. Upload matching source maps privately so the reported line points to the original code. In Workers Logs and request analytics or your host’s equivalents, check errors, request volume, slow requests, and limits by release or route. Sentry source maps · Workers observability.
Background jobs and providers Alert when a scheduled result is late or invalid, or when queued work keeps getting older. Monitor third-party failures that affect the task, such as rejected email or an unavailable sign-in provider. A reachable homepage can coexist with a broken form or stale feed. Scheduled checks.
Performance and discovery Use PageSpeed Insights for a slow page or template and Search Console for indexing problems. Add optional real-user measurement if you need to follow performance across visits, for example with Cloudflare Web Analytics. Review the privacy impact of any added script. Cloudflare Web Analytics · Core Web Vitals targets.
Feedback and costs Monitor your support inbox and tag reports by page, device, and release. Watch usage and spending in host and vendor dashboards. Review recurring failures and expensive requests together. Cost controls.
  • Test the alert and the monitoring itself. In a safe environment, make a check fail and confirm the alert reaches someone who can act. Include the affected URL, release, and dashboard in the alert. If a critical monitor stops reporting, treat that as a check to investigate. Keep urgent alerts for problems someone needs to fix now. File routine errors for the next review.
  • Measure the impact and keep logs private. Compare completed tasks with attempts and show counts alongside rates on a small site. Investigate individual reports of data loss or blocked payments promptly. Tag events with the environment and release. Keep credentials, private form content, and personal identifiers out of logs where possible. Set access, sampling, and retention limits. Workers Logs · Visitor data checks.
Verify scheduled content from the visitor’s sideTest what the public site shows when an import is late, broken or intentionally disabled.
  • Define what counts as fresh. Pick a refresh cadence and a maximum acceptable age. Record when the source data was updated and when the site last published a verified copy. A successful job exit says little about what visitors received. Check the actual public response through the CDN and alert if its data is too old or invalid.
  • Test the schedule and retries. Cloudflare Cron Triggers use UTC. If a result belongs to a local date, check the day boundary and daylight saving changes. Run the same update twice and verify it doesn’t duplicate records or chargeable work. Prevent overlapping updates from publishing an older result over a newer one. Cloudflare Cron Triggers.
  • Keep a usable fallback. Validate a new result before replacing the old one. Test a missed run, an empty or invalid response, and a stale cache. Show the data date and explain when a refresh is unavailable. If an item’s right to display or its usefulness expires, hide that part and keep any approved links or static content available.
  • Bound manual refreshes. Give visitors a clear progress and failure state. Set timeouts and cooldowns, reuse recent results where appropriate, and have overlapping requests share work when possible. Verify that repeated clicks or a provider outage will stay within your API limits and cost budget. Cloudflare Cron Triggers · Google SRE monitoring.
Roll back releases, restore data and handle stale contentCode rollback, cache behavior and data repair need separate plans.
  • Keep a known-good deployment. Record its deploy ID, who can restore it, and any settings needed to rerun it. Test an open tab from the previous release as well as a fresh tab. Keep referenced versioned assets available during the transition or provide a safe refresh path. If cached HTML or feeds are serving the wrong version, purge the affected URLs where applicable and verify them from a clean browser. Cloudflare rollbacks and version skew · Cloudflare targeted cache purge.
  • Plan for data and outside effects separately. Keep database changes compatible with the current and previous code during a rollout. A Worker version rollback changes which version serves requests. It leaves database changes, sent emails, and completed charges in place. Know how to pause the affected action and reconcile records without repeating it. Check your provider’s rollback limits before relying on a previous version. Cloudflare rollback limitations.
  • Restore the whole service in a test environment. List what you’d need to recover, including the database, uploaded files, and configuration. Check backup frequency, retention, how much recent work you could lose, and how long restoration takes. For example, Supabase database backups cover database records but exclude files stored through its Storage API. Restore to a separate environment and verify a real task and the referenced files. Supabase backup coverage.
  • Verify and communicate recovery. Recheck the affected path on the public site. Watch the errors and support reports until the problem settles. Have a way to update users if the website itself is unavailable.
Forecast and control usage costsTrack domain renewals, requests, paid services and what happens on a bad day.
  • Estimate by billable action. Compare a normal month, a busy month, and a dependency failure. Include domain renewal, build quota, backend requests and CPU, storage and transfers, database operations, email, paid APIs, logs, and retries as applicable. For a cached feed, estimate scheduled refreshes plus any visitor-triggered refreshes, then check that the actual provider call count matches the model.
  • Check what actually reaches the Worker. Cloudflare lists requests served by Workers Static Assets as free and unlimited, subject to asset limits. Worker script invocations have separate billing and limits. If run_worker_first sends a static route through the Worker, each matching request invokes it. On the free tier, affected routes can return HTTP 429 when the request limit is reached. Measure that split in a test deployment before estimating costs. Static Assets billing and limits · Workers pricing.
  • Combine alerts with limits you can test. Set per-action limits on expensive work, bound retries, and check whether provider quotas fail closed or add charges. A budget email alerts a person. An enforced limit can stop new work. Cloudflare’s Workers spending limit can interrupt all Workers on the account and covers specified request and CPU charges. Check limits for databases, logging, and external APIs separately. Confirm what stays usable when a limit is reached, such as serving public pages while a paid refresh is paused. Cloudflare Workers spending limits.