Skip to content

Commit fbda94b

Browse files
committed
docs on allowing stagin
1 parent 3d48062 commit fbda94b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ RakeUi.configuration do |config|
5151
config.allow_production = true
5252
end
5353
```
54+
The `staging` environment will be available by default. If you determine this is a risk, you can disable that.
55+
```rb
56+
RakeUi.configuration do |config|
57+
config.allow_staging = false
58+
end
59+
```
60+
5461

5562
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)
5663

0 commit comments

Comments
 (0)