mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-15 11:12:54 +02:00
chore: remove unnecessary image.domains configuration
This commit is contained in:
parent
37b95a4e37
commit
5f95201576
8 changed files with 12 additions and 17 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue