Commit f6a429d 1 parent 801535d commit f6a429d Copy full SHA for f6a429d
File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -34,14 +34,14 @@ export const useContentHead = (
34
34
}
35
35
}
36
36
37
- let host = config . public . content . host
38
- if ( process . server && ! host ) {
39
- const req = useRequestEvent ( ) . node ?. req
40
- if ( req ) {
41
- const protocol = req . headers [ 'x-forwarded-proto' ] || req . connection . encrypted ? 'https' : 'http'
42
- host = `${ protocol } ://${ req . headers . host } `
43
- }
44
- }
37
+ const host = config . public . content . host
38
+ // if (process.server && !host) {
39
+ // const req = useRequestEvent().node?.req
40
+ // if (req && req.headers.host !== 'localhost' ) {
41
+ // const protocol = req.headers['x-forwarded-proto'] || req.connection.encrypted ? 'https' : 'http'
42
+ // host = `${protocol}://${req.headers.host}`
43
+ // }
44
+ // }
45
45
if ( process . server && host ) {
46
46
const _url = joinURL ( host ?? '/' , config . app . baseURL , to . fullPath )
47
47
const url = config . public . content . trailingSlash ? withTrailingSlash ( _url ) : withoutTrailingSlash ( _url )
You can’t perform that action at this time.
0 commit comments