Skip to content

Commit

Permalink
Update netlify config (#4732)
Browse files Browse the repository at this point in the history
* Update netlify config

* Update site/netlify.toml
  • Loading branch information
KnVerey authored Jul 29, 2022
1 parent 19c467a commit e7fe132
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 14 deletions.
10 changes: 0 additions & 10 deletions netlify.toml

This file was deleted.

2 changes: 1 addition & 1 deletion site/config.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
baseURL = "https://kustomize.io"
title = "Kustomize"

publishDir = "../publishedSite"
publishDir = "publishedSite"

# Language settings
contentDir = "content/en"
Expand Down
18 changes: 17 additions & 1 deletion site/netlify.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
[build]
base = "site/"
command = "git submodule update --init --recursive --depth 1 && hugo"
publish = "publishedSite/"

[build.environment]
HUGO_VERSION = "0.88.1"
HUGO_VERSION = "0.92.2"
NODE_ENV = "development"
NETLIFY_BUILD_DEBUG = "true"

[context.deploy-preview]
command = "git submodule update --init --recursive --depth 1 && hugo --enableGitInfo --buildFuture -b $DEPLOY_PRIME_URL"

[context.branch-deploy]
ignore = "exit 0" # build PRs (deploy preview env) only, not all branches

[context.production]
ignore = "exit 0" # never deploy production until we're ready to launch

2 changes: 1 addition & 1 deletion site/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"devDependencies": {
"autoprefixer": "^10.4.2",
"postcss": "^8.4.8",
"postcss-cli": "^9.0.2"
"postcss-cli": "^9.1.0"
}
}

0 comments on commit e7fe132

Please sign in to comment.