Bot releases are visible (Hide)
Published by github-actions[bot] 9 months ago
#152 816bdc42e0665904e418dd0137bd6a7c8c74307f
Thanks @lilnasy! - Implements verification for edge middleware. This is a security measure to ensure that your serverless functions are only ever called by your edge middleware and not by a third party.
When edgeMiddleware
is enabled, the serverless function will now respond with 403 Forbidden
for requests that are not verified to have come from the generated edge middleware. No user action is necessary.
Published by github-actions[bot] 9 months ago
06bae52f26d1df1368581aa859f332141db00c1b
Thanks @Skn0tt! - Fixes a bug in the Netlify Adapter where prerendered 404.astro pages weren't shown on hybrid/server deployments.Published by github-actions[bot] 9 months ago
2b5aaa4cfeda4bc7f1bf8db6210162c495866a95
Thanks @asdfjkalsdfla! - Updates the internals of the integration to support Astro 4.0. See this upstream pull request for additional details. Warning: Make sure to upgrade your Astro version to >4.2
as previous versions are no longer supported.Published by github-actions[bot] 9 months ago
2b5aaa4cfeda4bc7f1bf8db6210162c495866a95
Thanks @asdfjkalsdfla! - Updates the internals of the integration to support Astro 4.0. See this upstream pull request for additional details. Warning: Make sure to upgrade your Astro version to >4.2
as previous versions are no longer supported.d67df0e24ad0d9fca317f01e877f3dc650831488
Thanks @alexanderniebuhr! - Fixes an issue with _routes.json
generation, where duplicates where not removed correctly and an explicit user strategy setting was ignored.Published by github-actions[bot] 9 months ago
36434f0c631cb963c748a11679cf7a96cd605d8e
Thanks @Skn0tt! - Updates the behavior of the cacheOnDemandPages
setting to only cache GET/HEAD requests by defaultPublished by github-actions[bot] 10 months ago
#58 ecdb8f5bc21b19cc86e581711a1c360fc723a007
Thanks @alexanderniebuhr! - Adds the option to only run image optimization on images during build-time. Warning: This mode does not work with on-demand (SSR) image optimization.
import {defineConfig} from "astro/config";
import cloudflare from '@astrojs/cloudflare';
export default defineConfig({
output: 'server'
adapter: cloudflare({
+ imageService: 'compile'
}),
})
Published by github-actions[bot] 10 months ago
200dea9
Thanks @alexanderniebuhr! - Updates miniflare versionPublished by github-actions[bot] 10 months ago
Published by github-actions[bot] 10 months ago
89f7c01
Thanks @alexanderniebuhr! - Updates Netlify README.mdPublished by github-actions[bot] 10 months ago
63fa4e6
Thanks @sarah11918! - Updates Cloudflare README.mdPublished by github-actions[bot] 10 months ago
Published by github-actions[bot] 10 months ago
#84 ca64544
Thanks @Skn0tt! - # Netlify Adapter v4 simplifies static + SSR deployments
This update is a complete overhaul of the Netlify adapter.
It simplifies the user-facing config, and resolves a number of bugs along the way.
Here's what changes:
In v3, you could use netlify-edge-middleware.ts
to inject data from the Netlify context into your Astro locals.
In v4, this file is no longer needed because the Netlify context is automatically made available via Astro.locals.netlify.context
.
You can use this context to access information about the user (like geolocation or IP address), your Netlify site (like deploy ID) or the request (like its request ID or the CDN region it's served from).
Action Required:
Remove the netlify-edge-middleware.ts
or netlify-edge-middleware.js
file.
In your codebase, change all usage of locals injected through that file to use Astro.locals.netlify.context
instead.
v4 of this adapter integrates your Astro site with Netlify Image CDN.
This allows transforming images on-the-fly without impacting build times.
It's implemented using an Astro Image Service, and enabled by default.
On-Demand Builders (ODB) allows SSR-Rendered pages to be cached using a Time to Live (TTL) strategy.
While the Netlify platform continues to support existing pages with ODBs, we now recommend using the much more powerful
Fine-Grained Cache Control going forward.
In v3, you could deploy your SSR-Rendered Astro pages to ODBs by enabling the builders
config option,
and then specifying the TTL on a per-page basis.
In v4, a new cacheOnDemandPages
option replaces this config option. Take a look at the README to learn more about this.
Action Required:
Replace the builders
config option with cacheOnDemandPages
.
// astro.config.mjs
export default defineConfig({
// ...
adapter: netlify({
- builders: true
+ cacheOnDemandPages: true
}),
});
functionPerRoute
was removedIn v3, the functionPerRoute
option allowed the SSR routes to be split up into multiple Netlify Functions.
This reduced the bundle sizes of each individual function, with the intention of speeding up code parsing, and therefore the time of cold starts.
In practice, this benefit is often nullified by the increase in number of cold starts - more handlers means fewer requests per handler, means more cold starts.
In v4, support for this deployment mode was removed.
Action Required:
Remove the functionPerRoute
field from your config.
binaryMediaTypes
was removedbinaryMediaTypes
was a workaround required for some Astro endpoints, because v3 deployed those as "old" Netlify Functions (now referred to as "Lambda Compatibility Mode").
v4 uses the new Netlify Functions 2.0, which simply doesn't need this workaround anymore - so we're removing it 🎉
Action Required:
Remove the binaryMediaTypes
field from your config.
Published by github-actions[bot] 11 months ago
Published by github-actions[bot] 11 months ago
f1df277
Thanks @alexanderniebuhr! - Fixes an issue where this package could not be installed alongside Astro 4.0.Published by github-actions[bot] 11 months ago
#94 13ddae8
Thanks @alexanderniebuhr! - Removes deprecated option build.split
. Use functionPerRoute
instead.
#94 13ddae8
Thanks @alexanderniebuhr! - Changes the way that bindings are configured for the local runtime using astro dev
. This change is developed in cooperation with Cloudflare and aligns Astro more closely to the behavior of Wrangler.
⚠️ This is a breaking change for anyone deploying to Cloudflare Pages. You need to update your astro config file to set new the bindings. Follow the updated docs for configuring @astrojs/cloudflare
#94 13ddae8
Thanks @alexanderniebuhr! - Improves compatibility with Astro 4.0. using WASM modules
#94 13ddae8
Thanks @alexanderniebuhr! - Updates peerDependency
of astro
to be less strict
Published by github-actions[bot] 11 months ago
#69 473e9fa
Thanks @alexanderniebuhr! - Fixes a regression which caused the adapter to falsely generate _routes.json
for on-demand rendered 404 pages, which causes unexpected behavior in Cloudflare's SPA routing.
#66 5b62509
Thanks @ToxiWoxi! - Fixes a regression which caused the adapter to falsely return an empty 404 response, caused by an upstream change https://github.com/withastro/astro/pull/7754.
Published by github-actions[bot] 11 months ago
#34 4e1060b
Thanks @alexanderniebuhr! - Adds an imageService
adapter option to configure which image service is used. Read more in the Cloudflare adapter docs.
#34 4e1060b
Thanks @alexanderniebuhr! - Adds support for using Cloudflare's Image Resizing service as an external image service in Astro. See Cloudflare's image docs for more information about pricing and features.
Published by github-actions[bot] 12 months ago
acf4c82
Thanks @alexanderniebuhr! - Updates dependenciesPublished by github-actions[bot] 12 months ago
acf4c82
Thanks @alexanderniebuhr! - Updates dependenciesPublished by github-actions[bot] 12 months ago
1611ff7
Thanks @alexanderniebuhr! - Fixes a regression introduced in 7.6.2, which breaks building