@astrojs/netlify@7.0.0-alpha.4
📦 astroView on GitHub →
✨ 2 features⚡ 1 deprecations🔧 3 symbols
Summary
This release introduces a new object-based configuration for session drivers to improve consistency, deprecating the previous string-based configuration method.
Migration Steps
- Import 'sessionDrivers' from 'astro/config'.
- Update the 'session.driver' configuration from a string to a function call from 'sessionDrivers', passing any options directly into the function.
✨ New Features
- Introduced a new session driver object shape for improved flexibility and consistency.
- Added sessionDrivers export to 'astro/config' for configuring session drivers.
🔧 Affected Symbols
defineConfigsessionDriverssession.driver⚡ Deprecations
- Specifying the session driver as a string (e.g., driver: 'redis') is deprecated. Use the new object shape via sessionDrivers instead.