Eleventy Plugin Baseline

A magic carpet ride

Documentation — Table of Contents

Deployment URL Checks

Keep your URLs correct across dev, preview, and production so canonicals, sitemaps, and social tags never leak localhost. Uses npm, Node 20.15.0+, and the Baseline setup from earlier tutorials.

What you’ll build

Prerequisites

1) Set site.url (and optionally pathPrefix)

In src/_data/site.js:

export default {
  title: "Simple Baseline Site",
  tagline: "Correct URLs across dev/preview/prod",
  url: process.env.URL || "http://localhost:8080/", // override per env
  defaultLanguage: "en",
  noindex: false
};

2) Set environment URLs (local and CI)

3) Run with the right URL per environment

4) Preview builds (optional)

5) Verify outputs

6) PathPrefix checklist (if applicable)

7) Next steps

Previous: Custom Social Previews

Next: Image Shortcode Basics