Skip to content

Commit 4a7d66b

Browse files
committed
fix: ensure file is written in temp dir
1 parent a8b775f commit 4a7d66b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/libraries/router/src/registry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ impl HiveRegistry {
124124
// It also enables hot-reloading to makes sure Apollo Router watches the file.
125125
let file_name = config.schema_file_path.unwrap_or(
126126
env::temp_dir()
127-
.with_file_name("supergraph-schema.graphql")
127+
.join("supergraph-schema.graphql")
128128
.to_string_lossy()
129129
.to_string(),
130130
);

0 commit comments

Comments
 (0)