@netlify/config 25.3.0 → 25.4.1
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
|
+
"version": "25.4.1",
|
|
4
4
|
"description": "Netlify config module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/index.js",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"license": "MIT",
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@netlify/api": "^15.1.
|
|
61
|
+
"@netlify/api": "^15.1.4",
|
|
62
62
|
"@netlify/headers-parser": "^10.1.1",
|
|
63
63
|
"@netlify/redirect-parser": "^16.1.1",
|
|
64
64
|
"chalk": "^6.0.0",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"engines": {
|
|
95
95
|
"node": ">=22.12.0"
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "33d74df3817de0bc8b237e82f2d7b10b4983c93c"
|
|
98
98
|
}
|