mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-28 06:05:31 +03:00
Pass through environment to CLI app for secrets.
This commit is contained in:
parent
69e465d511
commit
5754bfb186
@ -12,7 +12,9 @@ function runElm(callback) {
|
||||
const warnOriginal = console.warn;
|
||||
console.warn = function() {};
|
||||
eval(data.toString());
|
||||
const app = Elm.Main.init({ flags: { imageAssets: {} } });
|
||||
const app = Elm.Main.init({
|
||||
flags: { secrets: process.env }
|
||||
});
|
||||
|
||||
app.ports.toJsPort.subscribe(payload => {
|
||||
process.chdir(startingDir);
|
||||
|
Loading…
Reference in New Issue
Block a user