NetlifyIntegrationConfig Type — astro Architecture
Architecture documentation for the NetlifyIntegrationConfig type/interface in index.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD c4806663_3225_f167_fc60_49f7e6647296["NetlifyIntegrationConfig"] 01c2fa75_d554_caf7_1c43_205032b5e695["index.ts"] c4806663_3225_f167_fc60_49f7e6647296 -->|defined in| 01c2fa75_d554_caf7_1c43_205032b5e695 style c4806663_3225_f167_fc60_49f7e6647296 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/netlify/src/index.ts lines 193–279
export interface NetlifyIntegrationConfig {
/**
* Force files to be bundled with your SSR function.
* This is useful for including any type of file that is not directly detected by the bundler,
* like configuration files or assets that are dynamically imported at runtime.
*
* Note: File paths are resolved relative to your project's `root`. Absolute paths may not work as expected.
*
* @example
* ```js
* includeFiles: ['./src/data/*.json', './src/locales/*.yml', './src/config/*.yaml']
* ```
*/
includeFiles?: string[];
/**
* Exclude files from the bundling process.
* This is useful for excluding any type of file that is not intended to be bundled with your SSR function,
* such as large assets, temporary files, or sensitive local configuration files.
*
* @example
* ```js
* excludeFiles: ['./src/secret/*.json', './src/temp/*.txt']
* ```
*/
excludeFiles?: string[];
/**
* If enabled, On-Demand-Rendered pages are cached for up to a year.
* This is useful for pages that are not updated often, like a blog post,
* but that you have too many of to pre-render at build time.
*
* You can override this behavior on a per-page basis
* by setting the `Cache-Control`, `CDN-Cache-Control` or `Netlify-CDN-Cache-Control` header
* from within the Page:
*
* ```astro
* // src/pages/cached-clock.astro
* Astro.response.headers.set('CDN-Cache-Control', "public, max-age=45, must-revalidate");
* ---
* <p>{Date.now()}</p>
* ```
*/
cacheOnDemandPages?: boolean;
/**
* If disabled, Middleware is applied to prerendered pages at build-time, and to on-demand-rendered pages at runtime.
* Only disable when your Middleware does not need to run on prerendered pages.
* If you use Middleware to implement authentication, redirects or similar things, you should should likely enabled it.
*
* If enabled, Astro Middleware is deployed as an Edge Function and applies to all routes.
* Caveat: Locals set in Middleware are not applied to prerendered pages, because they've been rendered at build-time and are served from the CDN.
*
* @default {false}
*/
edgeMiddleware?: boolean;
/**
* If enabled, Netlify Image CDN is used for image optimization.
* This transforms images on-the-fly without impacting build times.
*
* If disabled, Astro's built-in image optimization is run at build-time instead.
*
* @default {true}
*/
imageCDN?: boolean;
/**
* If enabled, the adapter will save [static headers in the framework API file](https://docs.netlify.com/frameworks-api/#headers).
*
* Here the list of the headers that are added:
* - The CSP header of the static pages is added when CSP support is enabled.
*/
staticHeaders?: boolean;
/**
* Netlify features to enable when running `astro dev`. These work best when your site is linked to a Netlify site using `netlify link`.
*
* Either a boolean to enable or disable all features, or an object to enable specific features.
*
* - `images`: Enables the Netlify Image CDN in local development. Default: true
Defined In
Source
Frequently Asked Questions
What is the NetlifyIntegrationConfig type?
NetlifyIntegrationConfig is a type/interface in the astro codebase, defined in packages/integrations/netlify/src/index.ts.
Where is NetlifyIntegrationConfig defined?
NetlifyIntegrationConfig is defined in packages/integrations/netlify/src/index.ts at line 193.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free