all repos — website @ 1573550c7792a0403c2b4fa0959bd349c5f945df

My website

fix feed linking to localhost 🤦🏻

Alan Pearce
commit

1573550c7792a0403c2b4fa0959bd349c5f945df

parent

a10c8466b4bf81f9ddd356a2da90e8e5e9b360a5

1 file changed, 0 insertions(+), 17 deletions(-)

changed files
M internal/config/config.gointernal/config/config.go
@@ -1,7 +1,6 @@
package config import ( - "fmt" "io/fs" "log/slog" "net/url"
@@ -57,15 +56,6 @@ return fallback
} } -func setDevelopmentOverrides(config *Config) error { - overrideURL, err := URL.Parse(config.BaseURL, "http://localhost:"+fmt.Sprint(config.Port)) - if err != nil { - return err - } - config.BaseURL.URL = overrideURL - return nil -} - func GetConfig() (*Config, error) { config := Config{} slog.Debug("reading config.toml")
@@ -86,12 +76,5 @@ if err != nil {
return nil, err } config.Port = port - config.Production = os.Getenv("ENV") == "production" - if !config.Production { - err = setDevelopmentOverrides(&config) - if err != nil { - return nil, errors.WithMessage(err, "could not override configuration") - } - } return &config, nil }