From 3b92dbeabfbdb9fc7713bd4f476c6ad8af419e54 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sat, 23 Jun 2018 17:02:33 -0600 Subject: [PATCH] add env key to UI model to preview --- tasks/build-preview.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/build-preview.js b/tasks/build-preview.js index 53c7272..77c8411 100644 --- a/tasks/build-preview.js +++ b/tasks/build-preview.js @@ -23,6 +23,7 @@ module.exports = async (src, dest, siteSrc, siteDest, sink) => { map((file, next) => { const compiledLayout = layouts[file.stem === '404' ? '404.hbs' : 'default.hbs'] const siteRootPath = path.relative(path.dirname(file.path), path.resolve(siteSrc)) + uiModel.env = process.env uiModel.siteRootPath = siteRootPath uiModel.siteRootUrl = path.join(siteRootPath, 'index.html') uiModel.uiRootPath = path.join(siteRootPath, '_') -- 2.11.0