Skip to content

Commit

Permalink
docs on allowing staging
Browse files Browse the repository at this point in the history
  • Loading branch information
NewAlexandria committed Mar 3, 2024
1 parent 3d48062 commit 2370e51
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ RakeUi.configuration do |config|
config.allow_production = true
end
```
The `staging` environment will be available by default. If you determine this is a risk, you can disable that.
```rb
RakeUi.configuration do |config|
config.allow_staging = false
end
```


We recommend adding guards in your route to ensure that the proper authentication is in place to ensure that users are authenticated so that if this were ever to be rendered in production, you would be covered. The best way for that is [router constraints](https://guides.rubyonrails.org/routing.html#specifying-constraints)

Expand Down

0 comments on commit 2370e51

Please sign in to comment.