Minor Changes
-
#13194
1b5037b
Thanks @dfdez! - AddsincludedFiles
andexcludedFiles
configuration options to customize SSR function bundle contents.The
includeFiles
property allows you to explicitly specify additional files that should be bundled with your function. This is useful for files that aren't automatically detected as dependencies, such as:- Data files loaded using
fs
operations - Configuration files
- Template files
Similarly, you can use the
excludeFiles
property to prevent specific files from being bundled that would otherwise be included. This is helpful for:- Reducing bundle size
- Excluding large binaries
- Preventing unwanted files from being deployed
import { defineConfig } from 'astro/config'; import netlify from '@astrojs/netlify'; export default defineConfig({ // ... output: 'server', adapter: netlify({ includeFiles: ['./my-data.json'], excludeFiles: ['./node_modules/package/**/*', './src/**/*.test.js'], }), });
See the Netlify adapter documentation for detailed usage instructions and examples.
- Data files loaded using
-
#13145
8d4e566
Thanks @ascorbic! - Automatically configures Netlify Blobs storage when experimental session enabledIf the
experimental.session
flag is enabled when using the Netlify adapter, Astro will automatically configure the session storage using the Netlify Blobs driver. You can still manually configure the session storage if you need to use a different driver or want to customize the session storage configuration.See the experimental session docs for more information on configuring session storage.
Patch Changes
- Updated dependencies []:
- @astrojs/underscore-redirects@0.6.0