You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Expiration time (in seconds) before the cached asset will be re-generated by invoking the Serverless Function. Setting the value to `false` means it will never expire.
38
-
*/
39
-
expiration: number|false;
40
-
/**
41
-
* Random token that can be provided in the URL to bypass the cached version of the asset, by requesting the asset
42
-
* with a __prerender_bypass=<token> cookie.
43
-
*
44
-
* Making a `GET` or `HEAD` request with `x-prerender-revalidate: <token>` will force the asset to be re-validated.
45
-
*/
46
-
bypassToken?: string;
47
-
/**
48
-
* List of query string parameter names that will be cached independently. If an empty array, query values are not considered for caching. If undefined each unique query value is cached independently
49
-
*/
50
-
allowQuery?: string[]|undefined;
51
-
};
35
+
isr?:
36
+
|{
37
+
/**
38
+
* Expiration time (in seconds) before the cached asset will be re-generated by invoking the Serverless Function. Setting the value to `false` means it will never expire.
39
+
*/
40
+
expiration: number|false;
41
+
/**
42
+
* Random token that can be provided in the URL to bypass the cached version of the asset, by requesting the asset
43
+
* with a __prerender_bypass=<token> cookie.
44
+
*
45
+
* Making a `GET` or `HEAD` request with `x-prerender-revalidate: <token>` will force the asset to be re-validated.
46
+
*/
47
+
bypassToken?: string;
48
+
/**
49
+
* List of query string parameter names that will be cached independently. If an empty array, query values are not considered for caching. If undefined each unique query value is cached independently
@@ -572,15 +593,25 @@ function validate_vercel_json(builder, vercel_config) {
572
593
unmatched_paths.push(path);
573
594
}
574
595
575
-
builder.log.warn(
576
-
`\nvercel.json defines cron tasks that use paths that do not correspond to an API route with a GET handler (ignore this if the request is handled in your \`handle\` hook):`
577
-
);
596
+
if(unmatched_paths.length){
597
+
builder.log.warn(
598
+
`\nWarning: vercel.json defines cron tasks that use paths that do not correspond to an API route with a GET handler (ignore this if the request is handled in your \`handle\` hook):`
0 commit comments