release notes
release notes
Published 3/6/2026
Contains new features#15781 2de969d Thanks @ematipico! - Adds a new clientAddress option to the createContext() function
Providing this value gives adapter and middleware authors explicit control over the client IP address. When not provided, accessing clientAddress throws 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'),
});
Updated dependencies [4ebc1e3, 4e7f3e8]:
release notes
Published 3/6/2026
Contains new features#15781 2de969d Thanks @ematipico! - Adds a new clientAddress option to the createContext() function
Providing this value gives adapter and middleware authors explicit control over the client IP address. When not provided, accessing clientAddress throws 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'),
});
Updated dependencies [4ebc1e3, 4e7f3e8]:
The web framework for content-driven websites. ⭐️ Star to support our work!