portails/netlify.toml

25 lines
544 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
[dev]
framework = "#custom"
command = "npx hugo server --disableFastRender"
targetPort = 1313
port = 8888
publish = "public"
autoLaunch = false
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]
command = "npx hugo --gc --minify -b $URL && npm run build:functions"
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"