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'
1111import { extractNetworkHints } from '../utils/network'
1212
1313export 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 {
You can’t perform that action at this time.
0 commit comments