Skip to content

Commit a1799a7

Browse files
committed
chore: cleanup nitro plugin
1 parent eecc8b3 commit a1799a7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/runtime/server/plugin.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ import { extractDeviceHints } from '../utils/device'
1111
import { extractNetworkHints } from '../utils/network'
1212

1313
export default defineNitroPlugin((nitroApp) => {
14-
const { serverImages, ...rest } = useAppConfig().httpClientHints as ServerHttpClientHintsOptions
14+
const {
15+
serverImages,
16+
...rest
17+
} = useAppConfig().httpClientHints as ServerHttpClientHintsOptions
1518
const options: ResolvedHttpClientHintsOptions = {
1619
...rest,
1720
serverImages: serverImages.map(r => new RegExp(r)),
@@ -20,7 +23,7 @@ export default defineNitroPlugin((nitroApp) => {
2023
// we should add the Vary header to the response: is there a way to check if the response has been committed?
2124
})
2225
nitroApp.hooks.hook('request', async (event) => {
23-
// expose the client hints in the context
26+
// expose the client hints in the context
2427
const url = event.path
2528
console.log(url)
2629
try {

0 commit comments

Comments
 (0)