Skip to content

Commit 744d15e

Browse files
authored
fix(async-graphql): patch graphiql source to pin version (#30)
1 parent 8c0288c commit 744d15e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/graphql/src/server.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ fn graphql_filter(schema: Schema) -> impl Filter<Extract = impl Reply, Error = R
4242
.replace(
4343
"new URL(endpoint, window.location.origin);",
4444
"new URL(window.location.href.trimEnd('/') + endpoint)",
45+
)
46+
// the playground source from async-graphql is broken as a new graphiql version has been released.
47+
// we patch the source to use a working version.
48+
.replace(
49+
"https://unpkg.com/graphiql/graphiql.min.js",
50+
"https://unpkg.com/graphiql@3/graphiql.min.js",
4551
),
4652
)
4753
});

0 commit comments

Comments
 (0)