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
  0dc15f71_d03a_2c68_db25_fced0d610bab["isServerRendering()"]
  c27f0203_4eed_0348_4118_e8e105adc6ee["parse()"]
  c27f0203_4eed_0348_4118_e8e105adc6ee -->|calls| 0dc15f71_d03a_2c68_db25_fced0d610bab
  style 0dc15f71_d03a_2c68_db25_fced0d610bab 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
}

Subdomains

Called By

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