Open
Description
There are several places in the code where we set up a frontend.NewServer
:
cmd/frontend
: https://github.com/golang/pkgsite/blob/master/cmd/frontend/main.go#L94-L123internal/frontend/server_test.go
: https://github.com/golang/pkgsite/blob/master/internal/frontend/server_test.go#L990-L1031internal/testing/integration/frontend_test.go
: https://github.com/golang/pkgsite/blob/master/internal/testing/integration/frontend_test.go#L155-L167
It would be useful to factor out shared parts of this code to reduce duplication.