Skip to content

Commit

Permalink
fix(vercel): add default proto for domains (fixes #277)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed May 17, 2021
1 parent 25e56e8 commit f501914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const providerSetup: Record<string, ProviderSetup> = {
const imagesConfig = resolve(nuxt.options.rootDir, '.vercel_build_output/config/images.json')
await mkdirp(dirname(imagesConfig))
await writeJson(imagesConfig, {
domains: moduleOptions.domains.map(domain => parseURL(domain).host),
domains: moduleOptions.domains.map(domain => parseURL(domain, 'https://').host),
sizes: Array.from(new Set(Object.values(moduleOptions.screens || {})))
})
}
Expand Down

0 comments on commit f501914

Please sign in to comment.