[build] base = "/" publish = "public/" command = "hugo --minify " [[redirects]] from = "/latest/*" to = "/v1.10/:splat" status = 302 [[redirects]] from = "/docs/*" to = "/:splat" status = 302 [context.deploy-preview] command = "sed -i 's/# writeStats: true/writeStats: true/g' config.yaml && cat config.yaml && hugo --minify" [context.production] command = "sed -i 's/# writeStats: true/writeStats: true/g' config.yaml && hugo --minify" # Use [dev] to set configuration overrides for local # development environments run using Netlify Dev - except # for environment variables. Environment variables for Netlify # Dev should be set under [context.dev.environment] instead. [dev] command = "hugo server" port = 8888