@astrojs/vercel
π Patch Changes
- #15934
6f8f0bcThanks @ematipico! - Updates the AstropeerDependencies#astroto be6.0.0.
- #15934
π Patch Changes
- Updated dependencies [
c2cd371]:- @astrojs/internal-helpers@0.7.6
- Updated dependencies [
β¨ Major Changes
- #15413
736216bThanks @florian-lefebvre! - Removes the deprecated@astrojs/vercel/serverlessand@astrojs/vercel/staticexports. Use the@astrojs/vercelexport instead
πΏ Minor Changes
-
#15258
d339a18Thanks @ematipico! - Stabilizes the adapter featureexperimentalStatiHeaders. If you were using this feature in any of the supported adapters, youβll need to change the name of the flag:export default defineConfig({adapter: netlify({experimentalStaticHeaders: truestaticHeaders: true})}) -
#15413
736216bThanks @florian-lefebvre! - Updates the implementation to use the new Adapter API -
#15495
5b99e90Thanks @leekeh! - Adds newmiddlewareModeadapter feature and deprecatesedgeMiddlewareoptionThe
edgeMiddlewareoption is now deprecated and will be removed in a future release, so users should transition to using the newmiddlewareModefeature as soon as possible.export default defineConfig({adapter: vercel({edgeMiddleware: truemiddlewareMode: 'edge'})}) -
#14946
95c40f7Thanks @ematipico! - Removes theexperimental.cspflag and replaces it with a new configuration optionsecurity.csp- (v6 upgrade guidance)
π Patch Changes
-
#15781
2de969dThanks @ematipico! - Adds a newclientAddressoption to thecreateContext()functionProviding this value gives adapter and middleware authors explicit control over the client IP address. When not provided, accessing
clientAddressthrows an error consistent with other contexts where it is not set by the adapter.Additionally, both of the official Netlify and Vercel adapters have been updated to provide this information in their edge middleware.
import { createContext } from 'astro/middleware';createContext({clientAddress: context.headers.get('x-real-ip'),}); -
#15778
4ebc1e3Thanks @ematipico! - Fixes an issue where the computedclientAddresswas incorrect in cases of a Request header with multiple values. TheclientAddressis now also validated to contain only characters valid in IP addresses, rejecting injection payloads. -
#15460
ee7e53fThanks @florian-lefebvre! - Updates to use the new Adapter API -
#15450
50c9129Thanks @florian-lefebvre! - Fixes a case wherebuild.serverEntrywould not be respected when using the new Adapter API -
#15461
9f21b24Thanks @florian-lefebvre! - Updates to new Adapter API introduced in v6 -
#15125
6feb0d7Thanks @florian-lefebvre! - Updates Node versions data to account for v24 as the default -
Updated dependencies [
4ebc1e3,4e7f3e8,a164c77,cf6ea6b,a18d727,240c317,745e632]:- @astrojs/internal-helpers@0.8.0
- #15413
π Patch Changes
-
#15781
2de969dThanks @ematipico! - Adds a newclientAddressoption to thecreateContext()functionProviding this value gives adapter and middleware authors explicit control over the client IP address. When not provided, accessing
clientAddressthrows an error consistent with other contexts where it is not set by the adapter.Additionally, both of the official Netlify and Vercel adapters have been updated to provide this information in their edge middleware.
import { createContext } from 'astro/middleware';createContext({clientAddress: context.headers.get('x-real-ip'),}); -
#15778
4ebc1e3Thanks @ematipico! - Fixes an issue where the computedclientAddresswas incorrect in cases of a Request header with multiple values. TheclientAddressis now also validated to contain only characters valid in IP addresses, rejecting injection payloads. -
Updated dependencies [
4ebc1e3,4e7f3e8]:- @astrojs/internal-helpers@0.8.0-beta.3
-
π Patch Changes
- Updated dependencies [
745e632]:- @astrojs/internal-helpers@0.8.0-beta.2
- Updated dependencies [
πΏ Minor Changes
-
#15495
5b99e90Thanks @leekeh! - Adds newmiddlewareModeadapter feature and deprecatesedgeMiddlewareoptionThe
edgeMiddlewareoption is now deprecated and will be removed in a future release, so users should transition to using the newmiddlewareModefeature as soon as possible.export default defineConfig({adapter: vercel({edgeMiddleware: truemiddlewareMode: 'edge'})})
-
π Patch Changes
- #15461
9f21b24Thanks @florian-lefebvre! - Updates to new Adapter API introduced in v6
- #15461
π Patch Changes
-
#15460
ee7e53fThanks @florian-lefebvre! - Updates to use the new Adapter API -
#15450
50c9129Thanks @florian-lefebvre! - Fixes a case wherebuild.serverEntrywould not be respected when using the new Adapter API
-
β¨ Major Changes
- #15413
736216bThanks @florian-lefebvre! - Removes the deprecated@astrojs/vercel/serverlessand@astrojs/vercel/staticexports. Use the@astrojs/vercelexport instead
πΏ Minor Changes
- #15413
736216bThanks @florian-lefebvre! - Updates the implementation to use the new Adapter API
π Patch Changes
- #15413
πΏ Minor Changes
-
#15258
d339a18Thanks @ematipico! - Stabilizes the adapter featureexperimentalStatiHeaders. If you were using this feature in any of the supported adapters, youβll need to change the name of the flag:export default defineConfig({adapter: netlify({experimentalStaticHeaders: truestaticHeaders: true})})
-
π Patch Changes
- Updated dependencies [
240c317]:- @astrojs/internal-helpers@0.8.0-beta.0
- Updated dependencies [
π Patch Changes
- #15125
6feb0d7Thanks @florian-lefebvre! - Updates Node versions data to account for v24 as the default
- #15125
πΏ Minor Changes
- #14946
95c40f7Thanks @ematipico! - Removes theexperimental.cspflag and replaces it with a new configuration optionsecurity.csp- (v6 upgrade guidance)
- #14946
π Patch Changes
-
#14570
c96711dThanks @matthewp! - Fix regression in 8.2.7: validate densities-based srcset widths against configured sizesWhen using
densitieswith the Vercel image adapter, calculated widths were not being validated against Vercelβs configured sizes list. This caused images to fail when using densities, as Vercel would reject the invalid widths.This fix ensures densities-calculated widths are mapped to valid configured sizes, matching the behavior already implemented for the
widthsprop.
-
π Patch Changes
- #14536
9261996Thanks @florian-lefebvre! - Fixes a bug that caused too many files to be bundled in SSR
- #14536