We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3013775 commit 82ad995Copy full SHA for 82ad995
db/main.go
@@ -1,6 +1,7 @@
1
package main
2
3
import (
4
+ "cmp"
5
"database/sql"
6
"encoding/json"
7
"errors"
@@ -977,7 +978,7 @@ func onBootstrapHandler() func(se *core.BootstrapEvent) error {
977
978
if v := os.Getenv("ORIGIN"); v != "" {
979
e.App.Settings().Meta.AppURL = v
980
}
- if v := os.Getenv("POCKETBASE_SMTP_SENDER_ADDRESS"); v != "" {
981
+ if v := cmp.Or(os.Getenv("POCKETBASE_SMTP_SENDER_ADDRESS"), os.Getenv("POCKETBASE_SMTP_SENDER_ADRESS")); v != "" {
982
e.App.Settings().Meta.SenderAddress = v
983
984
if v := os.Getenv("POCKETBASE_SMTP_SENDER_NAME"); v != "" {
0 commit comments