Skip to content

Commit bee3465

Browse files
committed
Replace UNPKG in generated HTML w/ jsDelivr
1 parent 0780a1f commit bee3465

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/graphiqlHandler.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -37,33 +37,33 @@ const getGraphiqlHtml = ({ endpoint }: { endpoint: string }) => `
3737
</style>
3838
<script
3939
crossorigin
40-
src="https://unpkg.com/react@18/umd/react.production.min.js"
40+
src="https://cdn.jsdelivr.net/npm/react@18/umd/react.production.min.js"
4141
></script>
4242
<script
4343
crossorigin
44-
src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"
44+
src="https://cdn.jsdelivr.net/npm/react-dom@18/umd/react-dom.production.min.js"
4545
></script>
4646
<!--
4747
These two files can be found in the npm module, however you may wish to
4848
copy them directly into your environment, or perhaps include them in your
4949
favored resource bundler.
5050
-->
5151
<script
52-
src="https://unpkg.com/graphiql/graphiql.min.js"
52+
src="https://cdn.jsdelivr.net/npm/graphiql/graphiql.min.js"
5353
type="application/javascript"
5454
></script>
55-
<link rel="stylesheet" href="https://unpkg.com/graphiql/graphiql.min.css" />
55+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/graphiql/graphiql.min.css" />
5656
<!--
5757
These are imports for the GraphIQL Explorer plugin.
5858
-->
5959
<script
60-
src="https://unpkg.com/@graphiql/plugin-explorer/dist/index.umd.js"
60+
src="https://cdn.jsdelivr.net/npm/@graphiql/plugin-explorer/dist/index.umd.js"
6161
crossorigin
6262
></script>
6363
6464
<link
6565
rel="stylesheet"
66-
href="https://unpkg.com/@graphiql/plugin-explorer/dist/style.css"
66+
href="https://cdn.jsdelivr.net/npm/@graphiql/plugin-explorer/dist/style.css"
6767
/>
6868
</head>
6969

0 commit comments

Comments
 (0)