Home / Function/ isServerRendering() — vue Function Reference

isServerRendering() — vue Function Reference

Architecture documentation for the isServerRendering() function in env.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  dd74561d_4552_4172_fd80_dfcbd6f39a19["isServerRendering()"]
  aa2b6238_64b5_d2a0_65ca_67fd6aa3bf04["env.ts"]
  dd74561d_4552_4172_fd80_dfcbd6f39a19 -->|defined in| aa2b6238_64b5_d2a0_65ca_67fd6aa3bf04
  style dd74561d_4552_4172_fd80_dfcbd6f39a19 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

Frequently Asked Questions

What does isServerRendering() do?
isServerRendering() is a function in the vue codebase, defined in src/core/util/env.ts.
Where is isServerRendering() defined?
isServerRendering() is defined in src/core/util/env.ts at line 37.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free