mirror of
https://github.com/graphql-hive/console
synced 2026-04-21 14:37:17 +00:00
fix: ensure file is written in temp dir (#6753)
This commit is contained in:
parent
d8eac79d9c
commit
7ef800e840
2 changed files with 6 additions and 1 deletions
5
.changeset/happy-wasps-vanish.md
Normal file
5
.changeset/happy-wasps-vanish.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'hive-apollo-router-plugin': patch
|
||||
---
|
||||
|
||||
fix tmp dir filename
|
||||
|
|
@ -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(),
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue