Vercel HTML Starter

This template is a simple, but powerful single index.html file deployed to Vercel. When your site is deployed, all static assets (like HTML, JavaScript, CSS, images, and more) are deployed globally to every Vercel Edge Network region.

Simple, privacy-friendly analytics

Want to understand your visitor traffic? Vercel Analytics gives you first-party, privacy-friendly traffic analytics for your HTML site. This template is already configured using the following script:

<script defer src="/_vercel/insights/script.js"></script>

Learn more about Vercel Analytics.

Integrated with git

Deploying updates to your site is as simple as git push thanks to Vercel's advanced Git Integration. Support for GitHub, GitLab, Bitbucket is zero-configuration, and with the flexible Vercel CLI and API, you can integrate with any tool possible.

Learn more about Git Integration.

Fast gzip compression

To help ensure the smallest possible file sizes for your static assets, the Vercel Edge Network compresses files by default using gzip. You can also optionally use brotli compressesion if you prefer.

Learn more about compression.

Advanced routing configuration

Vercel gives you a variety of ways to configure the routing of your website. For example, adding redirects, rewrites, or headers to your page. While you can use vercel.json to define these through JSON, you can also express your routing configuration as code using Vercel Edge Middleware.

Middleware runs before the Vercel Edge Network Cache, so you can configure routing exactly as your application needs. For example, this template uses middleware.js defined in the root of the repository to add additional security headers to the site:

referrer-policy: origin-when-cross-origin
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-content-type-options: nosniff
x-dns-prefetch-control: on
x-frame-options: DENY

Learn more about Vercel Edge Middleware.