File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
src/HotChocolate/Fusion/src/Aspire/Composition Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,9 @@ private static async Task EnsureSubgraphHasConfigAsync(
90
90
continue ;
91
91
}
92
92
93
- var config = new SubgraphConfigurationDto ( project . Name ) ;
93
+ var config = new SubgraphConfigurationDto (
94
+ project . Name ,
95
+ [ new HttpClientConfiguration ( new Uri ( "http://localhost:5000" ) , "http" ) , ] ) ;
94
96
var configJson = PackageHelper . FormatSubgraphConfig ( config ) ;
95
97
await File . WriteAllTextAsync ( configFile , configJson , ct ) ;
96
98
}
@@ -125,9 +127,13 @@ private static async Task ComposeGatewayAsync(
125
127
Directory . CreateDirectory ( gatewayDirectory ) ;
126
128
}
127
129
130
+ if ( packageFile . Exists )
131
+ {
132
+ packageFile . Delete ( ) ;
133
+ }
134
+
128
135
await using var package = FusionGraphPackage . Open ( packageFile . FullName ) ;
129
- var subgraphConfigs =
130
- ( await package . GetSubgraphConfigurationsAsync ( ct ) ) . ToDictionary ( t => t . Name ) ;
136
+ var subgraphConfigs = ( await package . GetSubgraphConfigurationsAsync ( ct ) ) . ToDictionary ( t => t . Name ) ;
131
137
await ResolveSubgraphPackagesAsync ( subgraphDirectories , subgraphConfigs , ct ) ;
132
138
133
139
using var settingsJson = settingsFile . Exists
You can’t perform that action at this time.
0 commit comments