getNetworkLogging() — astro Function Reference
Architecture documentation for the getNetworkLogging() function in preview.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 2e8b889a_0717_ae0e_876e_084c1878b285["getNetworkLogging()"] 0e850bda_fb21_6bc2_df97_aab29717b7c7["preview.ts"] 2e8b889a_0717_ae0e_876e_084c1878b285 -->|defined in| 0e850bda_fb21_6bc2_df97_aab29717b7c7 6445b6ff_b146_6b78_6eb7_90f8bc42caf7["serverStart()"] 6445b6ff_b146_6b78_6eb7_90f8bc42caf7 -->|calls| 2e8b889a_0717_ae0e_876e_084c1878b285 style 2e8b889a_0717_ae0e_876e_084c1878b285 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/cloudflare/src/entrypoints/preview.ts lines 146–154
function getNetworkLogging(host: string | undefined): 'none' | 'host-to-expose' | 'visible' {
if (!host) {
return 'host-to-expose';
} else if (typeof host === 'string' && LOCAL_IP_HOSTS.has(host)) {
return 'none';
} else {
return 'visible';
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getNetworkLogging() do?
getNetworkLogging() is a function in the astro codebase, defined in packages/integrations/cloudflare/src/entrypoints/preview.ts.
Where is getNetworkLogging() defined?
getNetworkLogging() is defined in packages/integrations/cloudflare/src/entrypoints/preview.ts at line 146.
What calls getNetworkLogging()?
getNetworkLogging() is called by 1 function(s): serverStart.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free