Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Jan 26, 2023
1 parent 73da22d commit b1c60d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/docs/data-eleventy-supplied.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ module.exports = function(eleventyConfig) {
let eleventy = {

// Eleventy version
version: "1.0.1", // New in Eleventy v1.0.1
version: "1.0.1", // New in {{ "1.0.1" | coerceVersion }}

// For use with `<meta name="generator">`
generator: "Eleventy v1.0.1", // New in Eleventy v1.0.1
generator: "Eleventy v1.0.1", // New in {{ "1.0.1" | coerceVersion }}

// Read more about their `process.env` counterparts below
env: {
Expand All @@ -155,6 +155,9 @@ let eleventy = {

// The method, either `cli` or `script`
source: "cli",

// One of `serve`, `watch`, or `build`
runMode: "build", // New in {{ "2.0.0-beta.2" | coerceVersion }}
},

serverless: {
Expand Down
1 change: 1 addition & 0 deletions src/docs/environment-vars.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,4 @@ Eleventy also supplies its own Eleventy-specific environment variables, usually
* `process.env.ELEVENTY_ROOT` the absolute path to the directory in which you’ve run the Eleventy command.
* `process.env.ELEVENTY_SOURCE` is the method in which Eleventy has run, current either `cli` or `script`.
* `process.env.ELEVENTY_SERVERLESS` is set to `true` (String) if Eleventy is running in [serverless mode](/docs/plugins/serverless/). If Eleventy is _not_ running in serverless mode—due to Node forcing environment variables to be strings—this variable will not exist.
* `process.env.ELEVENTY_RUN_MODE` {% addedin "2.0.0-beta.2" %} is one of `build`, `serve`, or `watch`.

0 comments on commit b1c60d0

Please sign in to comment.