Skip to content

Commit af9a6de

Browse files
committed
Fix test setup for devcontainers by configuring hosts
1 parent e9d4d79 commit af9a6de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/initializers/github_codespaces.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def webpack_dev_server
3838
end
3939
end
4040

41-
if GithubCodespaces.active? && defined? Rails
41+
if GithubCodespaces.active? && defined?(Rails) && !Rails.env.test?
4242
Rails.application.configure do
4343
# Allow the Rails server to be accessed from the Codespaces domain
4444
config.hosts << GithubCodespaces.domain_for(:rails_server)

0 commit comments

Comments
 (0)