Skip to content

Commit

Permalink
updated the netlify.toml
Browse files Browse the repository at this point in the history
Signed-off-by: Dipankar Das <[email protected]>
  • Loading branch information
dipankardas011 committed Dec 2, 2024
1 parent f9235e9 commit e1b1dcc
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[build]
# Specify the directory containing the output of Hugo
publish = "public"
# Hugo build command
command = "hugo --gc --minify"

[context.production]
# Specify the Hugo version
HUGO_VERSION = "0.139.2"

# Install additional dependencies before building
[context.production.environment]
NODE_VERSION = "lts/*"
GO_VERSION = "stable"

[context.production.command]
# Custom pre-build steps
[[context.production.command.pre]]
command = "npm install -D postcss postcss-cli autoprefixer hugo-extended"

[[plugins]]
# Install Dart Sass plugin if needed
package = "@netlify/plugin-functions-core"

[[plugins.inputs]]
command = "sudo snap install dart-sass"

[build.processing]
# Ensure clean builds
skip_processing = false

# [context.branch-deploy]
# # Customize branch deploy logic if necessary
# command = "hugo --gc --minify --buildDrafts"

0 comments on commit e1b1dcc

Please sign in to comment.