2021-03-18 10:50:09 -04:00
|
|
|
[build]
|
|
|
|
publish = "public"
|
|
|
|
functions = "functions"
|
|
|
|
|
|
|
|
[build.environment]
|
|
|
|
NODE_VERSION = "15.5.1"
|
|
|
|
NPM_VERSION = "7.3.0"
|
|
|
|
|
|
|
|
[context.production]
|
2021-04-02 14:27:40 -04:00
|
|
|
command = "npx hugo --gc --minify && npx netlify-lambda build assets/lambda"
|
2021-03-18 10:50:09 -04:00
|
|
|
|
|
|
|
[context.deploy-preview]
|
|
|
|
command = "npx hugo --gc --minify -b $DEPLOY_PRIME_URL"
|
|
|
|
|
|
|
|
[context.branch-deploy]
|
|
|
|
command = "npx hugo --gc --minify -b $DEPLOY_PRIME_URL"
|
2021-04-02 14:27:40 -04:00
|
|
|
|
|
|
|
[context.next]
|
|
|
|
command = "npx hugo --gc --minify && npx netlify-lambda build assets/lambda"
|
|
|
|
|
|
|
|
[context.next.environment]
|
|
|
|
HUGO_ENV = "next"
|
|
|
|
|
|
|
|
[dev]
|
|
|
|
framework = "#custom"
|
|
|
|
command = "npx rimraf public resources functions && npx hugo server --bind=0.0.0.0 --disableFastRender"
|
|
|
|
targetPort = 1313
|
|
|
|
port = 8888
|
|
|
|
publish = "public"
|
|
|
|
autoLaunch = false
|