diff options
Diffstat (limited to 'internal/builder/builder.go')
-rw-r--r-- | internal/builder/builder.go | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/internal/builder/builder.go b/internal/builder/builder.go index d2d86a6..1181802 100644 --- a/internal/builder/builder.go +++ b/internal/builder/builder.go @@ -4,7 +4,6 @@ import ( "context" "fmt" "io" - "net/url" "os" "path" "slices" @@ -24,8 +23,7 @@ import ( type IOConfig struct { Source string `conf:"default:.,short:s,flag:src"` Destination string `conf:"default:website,short:d,flag:dest"` - BaseURL config.URL - Development bool `conf:"default:false,flag:dev"` + Development bool `conf:"default:false,flag:dev"` } type Result struct { @@ -267,13 +265,6 @@ func BuildSite(ioConfig IOConfig) (*Result, error) { config.InjectLiveReload = ioConfig.Development compressFiles = !ioConfig.Development - if ioConfig.BaseURL.URL != nil { - config.BaseURL.URL, err = url.Parse(ioConfig.BaseURL.String()) - if err != nil { - return nil, errors.WithMessage(err, "could not re-parse base URL") - } - } - if ioConfig.Development && ioConfig.Destination != "website" { err = os.RemoveAll(ioConfig.Destination) if err != nil { |