feat: implement frontend ssr service

This commit is contained in:
Steven
2023-12-17 21:56:10 +08:00
parent 6eb3ff412d
commit dbd3888fe1
8 changed files with 223 additions and 62 deletions

View File

@@ -90,7 +90,9 @@ func NewServer(ctx context.Context, profile *profile.Profile, store *store.Store
},
}))
embedFrontend(e)
// Serve frontend.
frontendService := NewFrontendService(profile, store)
frontendService.Serve(e)
// In dev mode, we'd like to set the const secret key to make signin session persistence.
secret := "slash"