diff --git a/netlify.toml b/netlify.toml index b2c901c7..06f09445 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,8 @@ [build] publish = "website_build" -command = "./scripts/build_website.sh" \ No newline at end of file +command = "./scripts/build_website.sh" + +[[plugins]] +package = "netlify-plugin-cache" + [plugins.inputs] + paths = ["deno_cache"] \ No newline at end of file diff --git a/scripts/build_website.sh b/scripts/build_website.sh index cd44c2cb..87a682a1 100755 --- a/scripts/build_website.sh +++ b/scripts/build_website.sh @@ -3,8 +3,7 @@ echo "Install Deno" curl -fsSL https://deno.land/install.sh | sh export PATH=~/.deno/bin:$PATH -export DENO_PATH=$NETLIFY_CACHE_DIR/deno -echo "NETLIFY_CACHE_DIR: $NETLIFY_CACHE_DIR" +export DENO_PATH=$PWD/deno_cache echo "DENO_PATH: $DENO_PATH" echo "Generating version number..."