From a836f1de4c27222a607b28353671bca59e8c8e30 Mon Sep 17 00:00:00 2001 From: Kevin J Hoerr Date: Mon, 27 Apr 2020 19:26:39 -0400 Subject: Fix templates not properly injecting context --- src/util/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util') diff --git a/src/util/config.ts b/src/util/config.ts index 3eb8d1c..3f14db1 100644 --- a/src/util/config.ts +++ b/src/util/config.ts @@ -66,12 +66,12 @@ export const handleStartup = async ( await persistTemplate({ inputFile: path.join(publicPath, "templates", "bash.template"), outputFile: path.join(hostDir, "bash"), - context: { targetUrl } + context: { TARGET_URL: targetUrl } } as Template); await persistTemplate({ inputFile: path.join(publicPath, "templates", "index.html.template"), outputFile: path.join(hostDir, "index.html"), - context: { targetUrl } + context: { TARGET_URL: targetUrl } } as Template); return mongo; -- cgit