diff --git a/app/.eleventy.js b/app/.eleventy.js
index bb5510e861..a790c6964b 100644
--- a/app/.eleventy.js
+++ b/app/.eleventy.js
@@ -89,7 +89,7 @@ module.exports = function (eleventyConfig) {
"stroke-width": 2,
})
- const pathPrefix = process.env.NODE_ENV.includes("production") ? "/metrics" : ""
+ const pathPrefix = process.env.ELEVENTY_ENV.includes("production") ? "/metrics" : ""
return {
dir: {
diff --git a/app/package.json b/app/package.json
index cacb07c4dc..23316a5e0e 100644
--- a/app/package.json
+++ b/app/package.json
@@ -4,16 +4,16 @@
"description": "",
"main": ".eleventy.js",
"scripts": {
- "start": "NODE_ENV=development run-p -l start:*",
+ "start": "ELEVENTY_ENV=development run-p -l start:*",
"start:eleventy": "eleventy --serve",
"start:rollup": "rollup --config rollup.config.mjs -w",
"start:postcss": "postcss ./src/css -d ./site/_includes/css -w",
- "prod": "NODE_ENV=test-production run-s -l prod:*",
+ "prod": "ELEVENTY_ENV=test-production run-s -l prod:*",
"prod:clean": "rm -rf dist",
"prod:rollup": "rollup --config rollup.config.mjs --bundleConfigAsCjs",
"prod:postcss": "postcss ./src/css -d ./site/_includes/css",
"prod:eleventy": "eleventy --serve",
- "build": "NODE_ENV=production run-s -l build:*",
+ "build": "ELEVENTY_ENV=production run-s -l build:*",
"build:clean": "rm -rf dist",
"build:rollup": "rollup --config rollup.config.mjs --bundleConfigAsCjs",
"build:postcss": "postcss ./src/css -d ./site/_includes/css",
diff --git a/app/postcss.config.js b/app/postcss.config.js
index 81de268979..57ee3fa634 100644
--- a/app/postcss.config.js
+++ b/app/postcss.config.js
@@ -2,7 +2,7 @@ module.exports = {
plugins: [
require("postcss-import"),
require("autoprefixer"),
- ...(process.env.NODE_ENV.includes("production")
+ ...(process.env.ELEVENTY_ENV.includes("production")
? [
require("cssnano"),
require("@fullhuman/postcss-purgecss")({
diff --git a/app/rollup.config.mjs b/app/rollup.config.mjs
index 627beb0670..3c7a01d284 100644
--- a/app/rollup.config.mjs
+++ b/app/rollup.config.mjs
@@ -14,7 +14,7 @@ export default [
resolve(),
babel(),
commonjs(),
- ...(process.env.NODE_ENV.includes("production") ? [terser()] : []),
+ ...(process.env.ELEVENTY_ENV.includes("production") ? [terser()] : []),
],
},
]
diff --git a/app/site/_data/site.js b/app/site/_data/site.js
index 5d74e4ba3f..78beef2313 100644
--- a/app/site/_data/site.js
+++ b/app/site/_data/site.js
@@ -1,10 +1,10 @@
-const isProduction = process.env.NODE_ENV.includes("production")
-const isTest = process.env.NODE_ENV.includes("test")
+const isProduction = process.env.ELEVENTY_ENV.includes("production")
+const isTest = process.env.ELEVENTY_ENV.includes("test")
const host = (isProduction && !isTest) ? "https://dsacms.github.io" : "http://localhost:8080"
// For modifying the
{{ organization.repo_count }}
{{ organization.repo_count }}
-{{ organization.followers_count }}
{{ organization.followers_count }}
{{ project.pull_requests_count }}
{{ project.created_at | date: '%B %d, %Y' }}
+- - {{ project.created_at | date: '%B %d, %Y' }} - - + {{ age_days }} day{% if age_days != 1 %}s{% endif %}
The Centers for Medicare and Medicaid Services is comprised of many GitHub Organizations.