Class: Inertia::Configuration::Ssr

Inherits:
Object
  • Object
show all
Defined in:
lib/inertia/configuration.rb

Overview

Stores configuration for server-side rendering.

Instance Attribute Summary collapse

Instance Attribute Details

#build_pathPathname?

Returns the path to the SSR build output.

Returns:

  • (Pathname, nil)

    the path to the SSR build output



128
129
130
# File 'lib/inertia/configuration.rb', line 128

def build_path
  @build_path
end

#enabledBoolean

Returns whether SSR is enabled.

Returns:

  • (Boolean)

    whether SSR is enabled



122
123
124
# File 'lib/inertia/configuration.rb', line 122

def enabled
  @enabled
end

#urlString

Returns the URL of the SSR server (default: http://localhost:13714).

Returns:

  • (String)

    the URL of the SSR server (default: http://localhost:13714)



125
126
127
# File 'lib/inertia/configuration.rb', line 125

def url
  @url
end