From e7fe132df8b8191259a96012b5cecd6e0fb93fb8 Mon Sep 17 00:00:00 2001 From: Katrina Verey Date: Fri, 29 Jul 2022 15:33:13 -0400 Subject: [PATCH] Update netlify config (#4732) * Update netlify config * Update site/netlify.toml --- netlify.toml | 10 ---------- site/config.toml | 2 +- site/netlify.toml | 18 +++++++++++++++++- site/package-lock.json | 2 +- site/package.json | 2 +- 5 files changed, 20 insertions(+), 14 deletions(-) delete mode 100644 netlify.toml diff --git a/netlify.toml b/netlify.toml deleted file mode 100644 index 16c70c299..000000000 --- a/netlify.toml +++ /dev/null @@ -1,10 +0,0 @@ -[build] - base = "site/" - command = "hugo" - publish = "../publishedSite" - -[context.production.environment] - HUGO_VERSION = "0.92.2" - -[context.deploy-preview.environment] - HUGO_VERSION = "0.92.2" diff --git a/site/config.toml b/site/config.toml index f1cb8f800..35aa0650d 100644 --- a/site/config.toml +++ b/site/config.toml @@ -1,7 +1,7 @@ baseURL = "https://kustomize.io" title = "Kustomize" -publishDir = "../publishedSite" +publishDir = "publishedSite" # Language settings contentDir = "content/en" diff --git a/site/netlify.toml b/site/netlify.toml index 0e94ebabd..a2ad21f21 100644 --- a/site/netlify.toml +++ b/site/netlify.toml @@ -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 + diff --git a/site/package-lock.json b/site/package-lock.json index a32d1220c..15eff60f0 100644 --- a/site/package-lock.json +++ b/site/package-lock.json @@ -11,7 +11,7 @@ "devDependencies": { "autoprefixer": "^10.4.2", "postcss": "^8.4.8", - "postcss-cli": "^9.0.2" + "postcss-cli": "^9.1.0" } }, "node_modules/@nodelib/fs.scandir": { diff --git a/site/package.json b/site/package.json index 7abe34f2f..cd2ebb297 100644 --- a/site/package.json +++ b/site/package.json @@ -19,6 +19,6 @@ "devDependencies": { "autoprefixer": "^10.4.2", "postcss": "^8.4.8", - "postcss-cli": "^9.0.2" + "postcss-cli": "^9.1.0" } }