Skip to content

Commit

Permalink
Fix GraphQL config overwriting HTTP config
Browse files Browse the repository at this point in the history
  • Loading branch information
PlasmaPower authored and hkalodner committed May 13, 2022
1 parent 72582a7 commit 01db3bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/genericconf/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ var GraphQLConfigDefault = GraphQLConfig{
}

func (c GraphQLConfig) Apply(stackConf *node.Config) {
stackConf.HTTPCors = c.CORSDomain
stackConf.HTTPVirtualHosts = c.VHosts
stackConf.GraphQLCors = c.CORSDomain
stackConf.GraphQLVirtualHosts = c.VHosts
}

func GraphQLConfigAddOptions(prefix string, f *flag.FlagSet) {
Expand Down

0 comments on commit 01db3bd

Please sign in to comment.