Skip to content

Add process.server and process.client #85

@aleclarson

Description

@aleclarson
if (process.server) {
  // Do something on server-side only.
}

if (process.client) {
  // Do something in web browser only.
}

(inspired by Nuxt)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions