@netlify/config 25.3.0 → 25.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -396,6 +396,15 @@ export const POST_NORMALIZE_VALIDATIONS: ({
396
396
  excludedPath: string[];
397
397
  };
398
398
  };
399
+ } | {
400
+ property: string;
401
+ check: (value: any) => value is string[];
402
+ message: string;
403
+ example: () => {
404
+ server: {
405
+ includedFiles: string[];
406
+ };
407
+ };
399
408
  } | {
400
409
  property: string;
401
410
  check: (value: any) => boolean;
@@ -31,7 +31,7 @@ const isValidFunctionMemory = (value) => {
31
31
  }
32
32
  return Number.isInteger(megabytes) && megabytes >= FUNCTION_MEMORY_MIN_MB && megabytes <= FUNCTION_MEMORY_MAX_MB;
33
33
  };
34
- const SERVER_PROPERTIES = ['excludedPath', 'path', 'region', 'size'];
34
+ const SERVER_PROPERTIES = ['excludedPath', 'includedFiles', 'path', 'region', 'size'];
35
35
  const SERVER_REGIONS = ['cmh', 'fra'];
36
36
  const SERVER_SIZES = ['small', 'medium', 'large'];
37
37
  const isServerPath = (value) => isString(value) && value.startsWith('/');
@@ -368,6 +368,12 @@ export const POST_NORMALIZE_VALIDATIONS = [
368
368
  message: 'must be a path starting with "/", or an array of them.',
369
369
  example: () => ({ server: { path: '/api/*', excludedPath: ['/api/internal', '/api/admin/*'] } }),
370
370
  },
371
+ {
372
+ property: 'server.includedFiles',
373
+ check: isArrayOfStrings,
374
+ message: 'must be an array of strings.',
375
+ example: () => ({ server: { includedFiles: ['data/**', 'templates/*.html'] } }),
376
+ },
371
377
  // Region and size are lowercased during normalization.
372
378
  {
373
379
  property: 'server.region',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/config",
3
- "version": "25.3.0",
3
+ "version": "25.4.0",
4
4
  "description": "Netlify config module",
5
5
  "type": "module",
6
6
  "exports": "./lib/index.js",
@@ -94,5 +94,5 @@
94
94
  "engines": {
95
95
  "node": ">=22.12.0"
96
96
  },
97
- "gitHead": "19447a3826a8d26af1bcdc704754e8a8586597f1"
97
+ "gitHead": "d21ff03cab97f189702f9900e48eb988cdd104cc"
98
98
  }