fix: enable Tidewave remote access properly

Pass allow_remote_access option directly to the Tidewave plug
instead of using application config (which was not being read).
Remove the ineffective config line from dev.exs.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
jamey 2026-01-31 13:47:58 +00:00
parent c2df13ff79
commit ee1da08941
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ config :simpleshop_theme, SimpleshopTheme.Repo,
config :simpleshop_theme, SimpleshopThemeWeb.Endpoint, config :simpleshop_theme, SimpleshopThemeWeb.Endpoint,
# Binding to loopback ipv4 address prevents access from other machines. # Binding to loopback ipv4 address prevents access from other machines.
# Change to `ip: {0, 0, 0, 0}` to allow access from other machines. # Change to `ip: {0, 0, 0, 0}` to allow access from other machines.
http: [ip: {127, 0, 0, 1}, port: String.to_integer(System.get_env("PORT") || "4000")], http: [ip: {0, 0, 0, 0}, port: String.to_integer(System.get_env("PORT") || "4000")],
check_origin: false, check_origin: false,
code_reloader: true, code_reloader: true,
debug_errors: true, debug_errors: true,

View File

@ -32,7 +32,7 @@ defmodule SimpleshopThemeWeb.Endpoint do
cache_control_for_etags: "public, max-age=31536000, immutable" cache_control_for_etags: "public, max-age=31536000, immutable"
if Code.ensure_loaded?(Tidewave) do if Code.ensure_loaded?(Tidewave) do
plug Tidewave plug Tidewave, allow_remote_access: true
end end
# Code reloading can be explicitly enabled under the # Code reloading can be explicitly enabled under the