A flag present in Rocket.toml or provided through other means needs to denote when the instance is switched into testing mode, in effect simply not sending emails but just printing the URL directly to stdout instead.
This basically just means adding a config option in config.rs and then applying this patch properly (in a way that doesn't require pre-runtime changes anymore but depends on the config option instead):
A flag present in
Rocket.toml
or provided through other means needs to denote when the instance is switched into testing mode, in effect simply not sending emails but just printing the URL directly to stdout instead.This basically just means adding a config option in
config.rs
and then applying this patch properly (in a way that doesn't require pre-runtime changes anymore but depends on the config option instead):https://github.com/dorodere/komplett-normale-busliste/blob/37e479201def703088639c8a4a74ecfb6325642e/slightly-hacky-local-testing.patch#L1-L26
Currently we apply this patch manually, which is error-prone and includes the not so nice possibility of committing that one.