Increase default wc-api timeout to 1 minute.

Large datasets may cause responses to take longer than 5 seconds.
This commit is contained in:
Jeff Stieler 2019-01-22 09:29:46 -07:00
parent e9bb73f23d
commit 0ef976f964
1 changed files with 2 additions and 2 deletions

View File

@ -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,
};