Skip to content

Commit 318395c

Browse files
committed
replace defineRuntimeConfig with NitroAppPlugin type
1 parent fe102e7 commit 318395c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/runtime/server/plugins/polyfill.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import type { NitroAppPlugin } from 'nitropack'
12
import { joinURL, cleanDoubleSlashes } from 'ufo'
2-
import { defineNitroPlugin } from "#nitro";
33
import { useRuntimeConfig } from "#imports";
44

5-
export default defineNitroPlugin((nitroApp) => {
5+
export default <NitroAppPlugin> function (nitroApp) {
66
const config = useRuntimeConfig()
77

88
const { src, isSelfHost } = config.public.nupolyon
@@ -18,4 +18,4 @@ export default defineNitroPlugin((nitroApp) => {
1818
html.head.unshift(preload, polyfill) // insert at the beginning of the array
1919
})
2020
}
21-
})
21+
}

0 commit comments

Comments
 (0)