Migrate from @astrojs/image to Astro Assets and Unpic

This commit is contained in:
prototypa
2023-08-13 17:34:30 -04:00
parent 9a350af269
commit 77817aa77e
33 changed files with 508 additions and 83 deletions

View File

@ -5,7 +5,6 @@ import { defineConfig } from 'astro/config';
import tailwind from '@astrojs/tailwind';
import sitemap from '@astrojs/sitemap';
import image from '@astrojs/image';
import mdx from '@astrojs/mdx';
import icon from 'astro-icon';
import partytown from '@astrojs/partytown';
@ -37,9 +36,7 @@ export default defineConfig({
applyBaseStyles: false,
}),
sitemap(),
image({
serviceEntryPoint: '@astrojs/image/sharp',
}),
mdx(),
icon({
include: {
@ -72,6 +69,10 @@ export default defineConfig({
remarkPlugins: [readingTimeRemarkPlugin],
},
experimental:{
assets: true
},
vite: {
resolve: {
alias: {