react/fixtures/fizz/server/delays.js

19 lines
488 B
JavaScript

/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
// Tweak these to play with different kinds of latency.
// How long the data fetches on the server.
exports.API_DELAY = 2000;
// How long the server waits for data before giving up.
exports.ABORT_DELAY = 10000;
// How long serving the JS bundles is delayed.
exports.JS_BUNDLE_DELAY = 4000;