diff options
author | 2023-08-11 08:22:23 -0700 | |
---|---|---|
committer | 2023-08-11 11:22:23 -0400 | |
commit | e1a886530f0c0077b5c94251ab2e9c428d761e7b (patch) | |
tree | 2c156c20b1ad7c66c372eaddb562672bd4591aa0 /packages/integrations/netlify | |
parent | 718d8f54725565a8c7229f609f3b914beaa3b9a9 (diff) | |
download | astro-e1a886530f0c0077b5c94251ab2e9c428d761e7b.tar.gz astro-e1a886530f0c0077b5c94251ab2e9c428d761e7b.tar.zst astro-e1a886530f0c0077b5c94251ab2e9c428d761e7b.zip |
[ci] release (#8023)create-astro@3.1.13astro@2.10.6@astrojs/vercel@3.8.1@astrojs/node@5.3.3@astrojs/netlify@2.6.0@astrojs/cloudflare@6.8.0
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'packages/integrations/netlify')
-rw-r--r-- | packages/integrations/netlify/CHANGELOG.md | 26 | ||||
-rw-r--r-- | packages/integrations/netlify/package.json | 4 |
2 files changed, 28 insertions, 2 deletions
diff --git a/packages/integrations/netlify/CHANGELOG.md b/packages/integrations/netlify/CHANGELOG.md index 57f318c29..2313698d5 100644 --- a/packages/integrations/netlify/CHANGELOG.md +++ b/packages/integrations/netlify/CHANGELOG.md @@ -1,5 +1,31 @@ # @astrojs/netlify +## 2.6.0 + +### Minor Changes + +- [#7975](https://github.com/withastro/astro/pull/7975) [`f974c95a2`](https://github.com/withastro/astro/commit/f974c95a27ccbf91adbc66f6f1433f4cf11be33e) Thanks [@lilnasy](https://github.com/lilnasy)! - If you are using Netlify's On-demand Builders, you can now specify how long your pages should remain cached. By default, all pages will be rendered on first visit and reused on every subsequent visit until a redeploy. To set a custom revalidation time, call the `runtime.setBuildersTtl()` local in either your frontmatter or middleware. + + ```astro + --- + import Layout from '../components/Layout.astro'; + + if (import.meta.env.PROD) { + // revalidates every 45 seconds + Astro.locals.runtime.setBuildersTtl(45); + } + --- + + <Layout title="Astro on Netlify"> + {new Date(Date.now())} + </Layout> + ``` + +### Patch Changes + +- Updated dependencies [[`1b8d30209`](https://github.com/withastro/astro/commit/1b8d3020990130dabfaaf753db73a32c6e0c896a), [`405913cdf`](https://github.com/withastro/astro/commit/405913cdf20b26407aa351c090f0a0859a4e6f54), [`87d4b1843`](https://github.com/withastro/astro/commit/87d4b18437c7565c48cad4bea81831c2a244ebb8), [`c23377caa`](https://github.com/withastro/astro/commit/c23377caafbc75deb91c33b9678c1b6868ad40ea), [`86bee2812`](https://github.com/withastro/astro/commit/86bee2812185df6e14025e5962a335f51853587b)]: + - astro@2.10.6 + ## 2.5.2 ### Patch Changes diff --git a/packages/integrations/netlify/package.json b/packages/integrations/netlify/package.json index f827838c3..8cf460ebb 100644 --- a/packages/integrations/netlify/package.json +++ b/packages/integrations/netlify/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/netlify", "description": "Deploy your site to Netlify", - "version": "2.5.2", + "version": "2.6.0", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", @@ -45,7 +45,7 @@ "esbuild": "^0.15.18" }, "peerDependencies": { - "astro": "workspace:^2.10.5" + "astro": "workspace:^2.10.6" }, "devDependencies": { "@netlify/edge-functions": "^2.0.0", |