mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
ef8b6fa257
If a FlightClient runs inside a FlightServer like fetching from a third party and that logs, then we currently double badge them since we just add on another badge. The issue is that this might be unnecessarily noisy but we also transfer the original format of the current server into the second badge. This extracts our own badge and then adds the environment name as structured data which lets the client decide how to format it. Before: <img width="599" alt="Screenshot 2025-07-02 at 2 30 07 PM" src="https://github.com/user-attachments/assets/4bf26a29-b3a8-4024-8eb9-a3f90dbff97a" /> After: <img width="590" alt="Screenshot 2025-07-02 at 2 32 56 PM" src="https://github.com/user-attachments/assets/f06bbb6d-fbb1-4ae6-b0e3-775849fe3c53" />
27 lines
911 B
JavaScript
27 lines
911 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.
|
|
*
|
|
* @flow
|
|
*/
|
|
|
|
import type {Request} from 'react-server/src/ReactFlightServer';
|
|
import type {ReactComponentInfo} from 'shared/ReactTypes';
|
|
|
|
export * from 'react-server-dom-webpack/src/server/ReactFlightServerConfigWebpackBundler';
|
|
export * from 'react-dom-bindings/src/server/ReactFlightServerConfigDOM';
|
|
|
|
export const supportsRequestStorage = false;
|
|
export const requestStorage: AsyncLocalStorage<Request | void> = (null: any);
|
|
|
|
export const supportsComponentStorage = false;
|
|
export const componentStorage: AsyncLocalStorage<ReactComponentInfo | void> =
|
|
(null: any);
|
|
|
|
export * from '../ReactFlightServerConfigDebugNoop';
|
|
|
|
export * from '../ReactFlightStackConfigV8';
|
|
export * from '../ReactServerConsoleConfigBrowser';
|