Update lamdera setup in netlify command.

This commit is contained in:
Dillon Kearns 2022-01-27 10:46:14 -08:00
parent 53b6bf6570
commit f8075363f9

View File

@ -2,7 +2,7 @@
base = "examples/docs/" base = "examples/docs/"
functions = "functions/" functions = "functions/"
publish = "dist/" 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]] [[redirects]]
from = "/screenshot/*" from = "/screenshot/*"