Lesson · Beginner

Publish a static site

Prepare a small website for static hosting, deploy it, and verify the real public URL instead of trusting build output alone.

Editorial preview — publication review is still required.

Author
Editorial team
Reviewer
Publication review pending
Review tier
90-day

A deployment is not complete until the public page works

Static hosts publish HTML, CSS, JavaScript, and assets without requiring your own application server. The platform may build from a repository or accept a prepared output directory.

Pre-deploy checklist

  • Open every page directly.
  • Remove unfinished placeholders and secrets.
  • Check relative links and filename case.
  • Confirm each page has a title and language.
  • Compress images and reserve dimensions.
  • Add a useful 404 page when the platform supports it.

Verify the real URL

After deployment, open the production URL in a clean browser session. Check HTTPS, the response status, navigation, mobile layout, form honesty, canonical URLs, and social preview information. A successful command does not prove the public route is correct.

Exercise

Publish a two-page test site to a preview URL. Change one heading, publish a second preview, and confirm the earlier preview remains a distinct artifact.