File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,10 @@ import { extractDeviceHints } from '../utils/device'
11
11
import { extractNetworkHints } from '../utils/network'
12
12
13
13
export default defineNitroPlugin ( ( nitroApp ) => {
14
- const { serverImages, ...rest } = useAppConfig ( ) . httpClientHints as ServerHttpClientHintsOptions
14
+ const {
15
+ serverImages,
16
+ ...rest
17
+ } = useAppConfig ( ) . httpClientHints as ServerHttpClientHintsOptions
15
18
const options : ResolvedHttpClientHintsOptions = {
16
19
...rest ,
17
20
serverImages : serverImages . map ( r => new RegExp ( r ) ) ,
@@ -20,7 +23,7 @@ export default defineNitroPlugin((nitroApp) => {
20
23
// we should add the Vary header to the response: is there a way to check if the response has been committed?
21
24
} )
22
25
nitroApp . hooks . hook ( 'request' , async ( event ) => {
23
- // expose the client hints in the context
26
+ // expose the client hints in the context
24
27
const url = event . path
25
28
console . log ( url )
26
29
try {
You can’t perform that action at this time.
0 commit comments