Browse Source

Fix templates not properly injecting context

trunk
Kevin Hoerr 10 months ago
parent
commit
a836f1de4c
Signed by: kjhoerr GPG Key ID: 78E4BD33ACC22C86
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/util/config.ts

+ 2
- 2
src/util/config.ts View File

@ -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;


Loading…
Cancel
Save