Add npm install command for new serverless function.

This commit is contained in:
Dillon Kearns 2021-05-14 14:19:51 -07:00
parent c6e7f18caf
commit e057535e99

View File

@ -2,7 +2,7 @@
base = "examples/docs/"
functions = "functions/"
publish = "dist/"
command = "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"
command = "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)"
ignore = "git diff --quiet HEAD^ HEAD `git rev-parse --show-toplevel`"
[[redirects]]