Skip to content

Commit

Permalink
dev: allowed hosts includes ngrok and GitHub codespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
chtzvt committed May 18, 2024
1 parent e2d2e24 commit 869bc23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@
config.hotwire_livereload.listen_paths += directories.map { |p| Rails.root.join(p) }

# Enable local development exposed via ngrok for webhook testing.
config.hosts << /.*\.ngrok-free\.app/
config.hosts << /.*\.ngrok\.io/
config.hosts << /.*\.github\.dev/

# Set the developer response grace period to 1 second to makes sure the delay is working
# but short enough that a human wouldn't even notice it.
Expand Down

0 comments on commit 869bc23

Please sign in to comment.