chore: update workspace setting service

This commit is contained in:
Steven
2024-02-20 23:02:01 +08:00
parent e6d0c00cf6
commit 8e11826db1
41 changed files with 2213 additions and 3678 deletions

View File

@ -69,9 +69,11 @@ func NewServer(ctx context.Context, profile *profile.Profile, store *store.Store
}
s.ID = serverID
// Register frontend service.
frontendService := frontend.NewFrontendService(profile, store)
frontendService.Serve(ctx, e)
if profile.ServeFrontend {
// Register frontend service.
frontendService := frontend.NewFrontendService(profile, store)
frontendService.Serve(ctx, e)
}
secret := "usememos"
if profile.Mode == "prod" {