Increase default wc-api timeout to 1 minute.
Large datasets may cause responses to take longer than 5 seconds.
This commit is contained in:
parent
e9bb73f23d
commit
0ef976f964
|
@ -2,12 +2,12 @@
|
|||
/**
|
||||
* External dependencies
|
||||
*/
|
||||
import { SECOND, MINUTE } from '@fresh-data/framework';
|
||||
import { MINUTE } from '@fresh-data/framework';
|
||||
|
||||
export const NAMESPACE = '/wc/v4';
|
||||
|
||||
export const DEFAULT_REQUIREMENT = {
|
||||
timeout: 5 * SECOND,
|
||||
timeout: 1 * MINUTE,
|
||||
freshness: 5 * MINUTE,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue