You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as "foot guns" go, this is a big one. I'd prefer it if most lightning instances could not be reset to a demo state with a single command.
Use the Vapor API
Make sure that if nothing gets set, this thing is false. (It's a special case when someone would actually want a "destroy everything" button... we happen to use it for our public sandbox which gets a nightly cleaning.)
Expect Lightning.Demo.reset_demo() throws an exception if someone attempts it without this ENV flag
Expect the mix task to throw an exception also
The text was updated successfully, but these errors were encountered:
taylordowns2000
changed the title
Add "CAN_RESET_TO_DEMO" env variable, default FALSE
Add "ALLOW_DEMO_RESET" env variable, default FALSE
Feb 15, 2024
As far as "foot guns" go, this is a big one. I'd prefer it if most lightning instances could not be reset to a demo state with a single command.
false
. (It's a special case when someone would actually want a "destroy everything" button... we happen to use it for our public sandbox which gets a nightly cleaning.)Lightning.Demo.reset_demo()
throws an exception if someone attempts it without this ENV flagThe text was updated successfully, but these errors were encountered: