From 5d23baad1eaa2768d61400b4f376b8e91683e14e Mon Sep 17 00:00:00 2001 From: Naomi Pentrel <5212232+npentrel@users.noreply.github.com> Date: Thu, 23 Jan 2025 14:39:53 +0100 Subject: [PATCH] use cachekeys --- netlify.toml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/netlify.toml b/netlify.toml index 27be3b5623..5ce8d0f8e7 100644 --- a/netlify.toml +++ b/netlify.toml @@ -57,9 +57,24 @@ [plugins.inputs] # change this key to a new one any time you need to restart from scratch - cacheKey = "Jan232025-$CONTEXT" + cacheKeys = ["Jan232025"] # either "warn" or "error" failBuildOnError = true # (for development) turn true for extra diagnostic logging - debug = true \ No newline at end of file + debug = true + +[[context.deploy-preview.plugins]] + package = "@eggnstone/netlify-plugin-no-more-404" + + [context.deploy-preview.plugins.inputs] + + cacheKeys = ["Jan232025-preview", "Jan232025"] + + +[[context.branch-deploy.plugins]] + package = "@eggnstone/netlify-plugin-no-more-404" + + [context.branch-deploy.plugins.inputs] + + cacheKeys = ["Jan232025-branch", "Jan232025"] \ No newline at end of file