Documentation menu

Deploy Eleventy on Light Cloud - detected from the Eleventy config, built to _site, and served from the global CDN with free bandwidth.

Deploy Eleventy

Eleventy is detected from its dependency and config file, and deploys as a static site: npm run build fills _site/, and the CDN serves it with free bandwidth. No server, no region, no cold starts.

Build#

  • Output directory: _site - Eleventy's default; override in Build settings if your config sets dir.output elsewhere.
  • Build command: whatever your build script runs (eleventy, or eleventy && postcss ... chains).
  • Install: follows your lockfile - see How detection works.

Environment variables#

Eleventy configs and data files are plain Node - read process.env freely at build time. Static builds run with the environment's variables set, so data files can fetch from APIs with per-environment credentials.

Values used only at build time never reach the browser unless your templates print them - keep secrets out of rendered output.