We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7bb617 commit 9f53d28Copy full SHA for 9f53d28
1 file changed
src/module.ts
@@ -1,6 +1,6 @@
1
import { resolve } from 'upath'
2
import defu from 'defu'
3
-import { parseURL, withLeadingSlash } from 'ufo'
+import { withLeadingSlash } from 'ufo'
4
import LruCache from 'lru-cache'
5
import type { Module } from '@nuxt/types'
6
import { setupStaticGeneration } from './generate'
@@ -40,7 +40,7 @@ const imageModule: Module<ModuleOptions> = async function imageModule (moduleOpt
40
41
// Normalize domains to hostname
42
options.domains = options.domains
43
- .map(domain => parseURL(domain, 'https://').host)
+ .map(domain => new URL(domain, 'https://').hostname)
44
.filter(Boolean) as string[]
45
46
// Normalize alias to start with leading slash
0 commit comments