We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe102e7 commit 318395cCopy full SHA for 318395c
src/runtime/server/plugins/polyfill.ts
@@ -1,8 +1,8 @@
1
+import type { NitroAppPlugin } from 'nitropack'
2
import { joinURL, cleanDoubleSlashes } from 'ufo'
-import { defineNitroPlugin } from "#nitro";
3
import { useRuntimeConfig } from "#imports";
4
5
-export default defineNitroPlugin((nitroApp) => {
+export default <NitroAppPlugin> function (nitroApp) {
6
const config = useRuntimeConfig()
7
8
const { src, isSelfHost } = config.public.nupolyon
@@ -18,4 +18,4 @@ export default defineNitroPlugin((nitroApp) => {
18
html.head.unshift(preload, polyfill) // insert at the beginning of the array
19
})
20
}
21
-})
+}
0 commit comments