Skip to content

Commit d839e17

Browse files
committed
Update draft
1 parent d9b039f commit d839e17

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drafts/2023-10-17-the-stack-part-4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ export const setupSupergraph = <N extends Supergraph['service'], R extends Super
479479
supergraphRoutes: { [key: string]: string },
480480
stackFn: (additionalConfig?: Specific<Supergraph, { service: N; runtime: R }>) => string,
481481
) => {
482-
const isMainSupergraph = config.supergraph.service === name;
482+
const isMainSupergraph = config.supergraph.service === name && config.supergraph.runtime === runtime;
483483
// We cast our result to `undefined | Specific` to narrow down the type.
484484
const additionalSupergraphConfig = config.experimental?.additionalSupergraphs?.find(
485485
(s) => s.service === name && s.runtime === runtime,

0 commit comments

Comments
 (0)