portails/netlify.toml

31 lines
750 B
TOML
Raw Normal View History

2020-04-15 15:48:16 +02:00
[build]
2020-11-04 08:26:58 +01:00
publish = "public"
functions = "functions"
2020-04-15 15:48:16 +02:00
[build.environment]
NODE_VERSION = "15.5.1"
NPM_VERSION = "7.3.0"
2020-11-04 08:26:58 +01:00
[context.production]
2021-04-02 19:45:05 +02:00
command = "npx hugo --gc --minify && npx netlify-lambda build assets/lambda"
2020-04-15 15:48:16 +02:00
[context.deploy-preview]
command = "npx hugo --gc --minify -b $DEPLOY_PRIME_URL"
2020-04-15 15:48:16 +02:00
[context.branch-deploy]
command = "npx hugo --gc --minify -b $DEPLOY_PRIME_URL"
2021-04-02 19:45:05 +02: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