chore: remove unnecessary image.domains configuration

This commit is contained in:
radishzzz 2025-04-13 16:21:14 +01:00
parent 37b95a4e37
commit 5f95201576
8 changed files with 12 additions and 17 deletions

View file

@ -16,7 +16,6 @@ import { remarkReadingTime } from './src/plugins/remark-reading-time'
const url = themeConfig.site.url
const locale = themeConfig.global.locale
const linkPrefetch = themeConfig.preload.linkPrefetch
const imageDomain = new URL(themeConfig.preload.imageHostURL as string).hostname
export default defineConfig({
site: url,
@ -26,10 +25,6 @@ export default defineConfig({
prefetchAll: true,
defaultStrategy: linkPrefetch,
},
image: {
domains: [imageDomain],
remotePatterns: [{ protocol: 'https' }],
},
i18n: {
locales: Object.entries(langMap).map(([path, codes]) => ({
path,