Skip to content

Commit 550f80d

Browse files
committed
- hotwire: update verifier key instructions
1 parent f9f1cbe commit 550f80d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

docs/guides/hotwire.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,13 @@ We recommend using AnyCable in a _standalone mode_ (i.e., without running an [RP
1515
- Configure Turbo to use your AnyCable application secret for signing streams:
1616

1717
```ruby
18-
# config/environments/production.rb
18+
# config/environments/*.rb
1919
config.turbo.signed_stream_verifier_key = "<your-secret>"
20+
21+
# or
22+
23+
# config/application.rb
24+
config.turbo.signed_stream_verifier_key = AnyCable.config.secret
2025
```
2126

2227
- Enable Turbo Streams support for AnyCable server:

0 commit comments

Comments
 (0)