diff --git a/.changeset/happy-wasps-vanish.md b/.changeset/happy-wasps-vanish.md new file mode 100644 index 0000000000..ac31e38ab5 --- /dev/null +++ b/.changeset/happy-wasps-vanish.md @@ -0,0 +1,5 @@ +--- +'hive-apollo-router-plugin': patch +--- + +fix tmp dir filename diff --git a/packages/libraries/router/src/registry.rs b/packages/libraries/router/src/registry.rs index 0f806f727e..c3fbb7b677 100644 --- a/packages/libraries/router/src/registry.rs +++ b/packages/libraries/router/src/registry.rs @@ -124,7 +124,7 @@ impl HiveRegistry { // It also enables hot-reloading to makes sure Apollo Router watches the file. let file_name = config.schema_file_path.unwrap_or( env::temp_dir() - .with_file_name("supergraph-schema.graphql") + .join("supergraph-schema.graphql") .to_string_lossy() .to_string(), );