isServerRendering() — vue Function Reference
Architecture documentation for the isServerRendering() function in env.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD ee7e00b8_f132_f08a_234f_c191d1d2abdd["isServerRendering()"] bbf88914_62b5_839d_3cfb_85a00fd1d67b["parse()"] bbf88914_62b5_839d_3cfb_85a00fd1d67b -->|calls| ee7e00b8_f132_f08a_234f_c191d1d2abdd style ee7e00b8_f132_f08a_234f_c191d1d2abdd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/core/util/env.ts lines 37–50
export const isServerRendering = () => {
if (_isServer === undefined) {
/* istanbul ignore if */
if (!inBrowser && typeof global !== 'undefined') {
// detect presence of vue-server-renderer and avoid
// Webpack shimming the process
_isServer =
global['process'] && global['process'].env.VUE_ENV === 'server'
} else {
_isServer = false
}
}
return _isServer
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does isServerRendering() do?
isServerRendering() is a function in the vue codebase.
What calls isServerRendering()?
isServerRendering() is called by 1 function(s): parse.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free