From f8075363f9a0edd42d4870ba3b78109b941f2f6a Mon Sep 17 00:00:00 2001 From: Dillon Kearns Date: Thu, 27 Jan 2022 10:46:14 -0800 Subject: [PATCH] Update lamdera setup in netlify command. --- netlify.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index ff05e464..a2fd7bb1 100644 --- a/netlify.toml +++ b/netlify.toml @@ -2,7 +2,7 @@ base = "examples/docs/" functions = "functions/" publish = "dist/" - command = "curl https://static.lamdera.com/bin/linux/lamdera -o /usr/local/bin/lamdera && chmod a+x /usr/local/bin/lamdera && export ELM_HOME=\"$NETLIFY_BUILD_BASE/cache/elm\" && (cd ../../ && npm install --no-optional && npx --no-install elm-tooling install) && npm install --no-optional && npm run build && cp ./elm-stuff/elm-pages/elm.js functions/render/elm-pages-cli.js && (cd functions/process-url && npm i)" + command = "mkdir /opt/build/repo/bin && export PATH=\"/opt/build/repo/bin:$PATH\" && echo $PATH && curl https://static.lamdera.com/bin/linux/lamdera -o /opt/build/repo/bin/lamdera && chmod a+x /opt/build/repo/bin/lamdera && export ELM_HOME=\"$NETLIFY_BUILD_BASE/cache/elm\" && (cd ../../ && npm install --no-optional && npx --no-install elm-tooling install) && npm install --no-optional && npm run build && cp ./elm-stuff/elm-pages/elm.js functions/render/elm-pages-cli.js && (cd functions/process-url && npm i)" [[redirects]] from = "/screenshot/*"