Skip to content

Commit

Permalink
Only add phoenix_live_view if html enabled, closes #5599
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Oct 11, 2023
1 parent 7b8575d commit 0a0a463
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions installer/templates/phx_single/config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ config :logger, :console, format: "[$level] $message\n"
config :phoenix, :stacktrace_depth, 20

# Initialize plugs at runtime for faster development compilation
config :phoenix, :plug_init_mode, :runtime<%= if @mailer do %>
config :phoenix, :plug_init_mode, :runtime<%= if @html do %>

# Include HEEx debug annotations as HTML comments in rendered markup
config :phoenix_live_view, :debug_heex_annotations, true
config :phoenix_live_view, :debug_heex_annotations, true<% end %><%= if @mailer do %>

# Disable swoosh api client as it is only required for production adapters.
config :swoosh, :api_client, false<% end %>
4 changes: 2 additions & 2 deletions installer/templates/phx_umbrella/config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import Config
config :logger, :console, format: "[$level] $message\n"

# Initialize plugs at runtime for faster development compilation
config :phoenix, :plug_init_mode, :runtime<%= if @mailer do %>
config :phoenix, :plug_init_mode, :runtime<%= if @html do %>

# Include HEEx debug annotations as HTML comments in rendered markup
config :phoenix_live_view, :debug_heex_annotations, true
config :phoenix_live_view, :debug_heex_annotations, true<% end %><%= if @mailer do %>

# Disable swoosh api client as it is only required for production adapters.
config :swoosh, :api_client, false<% end %>
Expand Down

0 comments on commit 0a0a463

Please sign in to comment.