From 5cf5d879bba0878d14e56cceee77854d3ccc18a1 Mon Sep 17 00:00:00 2001 From: Jorge Vargas Date: Tue, 3 Sep 2024 20:17:45 -0600 Subject: [PATCH] Remove astro-imagetools --- astro.config.mjs | 7 +++---- package.json | 5 ++--- src/components/Header.astro | 13 ++++--------- 3 files changed, 9 insertions(+), 16 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index cc97bf4..41228f5 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -3,10 +3,10 @@ import tailwind from '@astrojs/tailwind' import node from '@astrojs/node' import paraglide from '@inlang/paraglide-astro' import auth from 'auth-astro' -import { languageTags } from './project.inlang/settings.json' -import { astroImageTools } from 'astro-imagetools' import icon from 'astro-icon' +import { languageTags } from './project.inlang/settings.json' + // https://astro.build/config export default defineConfig({ site: 'https://beta.sittingonclouds.net', @@ -26,8 +26,7 @@ export default defineConfig({ project: './project.inlang', outdir: './src/paraglide' //where your files should be }), - icon({ iconDir: 'src/img/icons' }), - astroImageTools + icon({ iconDir: 'src/img/icons' }) ], output: 'server', adapter: node({ diff --git a/package.json b/package.json index 9ed1b46..e5f5d65 100644 --- a/package.json +++ b/package.json @@ -31,11 +31,10 @@ "@sequelize/mysql": "^7.0.0-alpha.41", "astro": "^4.13.1", "astro-icon": "^1.1.1", - "astro-imagetools": "^0.9.0", "auth-astro": "^4.1.2", "bcrypt": "^5.1.1", "graphql-scalars": "^1.23.0", - "sharp": "^0.33.5", + "sharp": "0.32.6", "tailwindcss": "^3.4.8" }, "devDependencies": { @@ -55,4 +54,4 @@ "optionalDependencies": { "@rollup/rollup-linux-x64-gnu": "4.9.5" } -} +} \ No newline at end of file diff --git a/src/components/Header.astro b/src/components/Header.astro index 909028a..bcafa62 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -1,9 +1,7 @@ --- import { gql } from '@/graphql/__generated__/client' import { getApolloClient } from '@/graphql/apolloClient.mjs' -import { Image } from 'astro:assets' -// @ts-ignore -import { Picture } from 'astro-imagetools/components' +import { Image, Picture } from 'astro:assets' import { getSession } from 'auth-astro/server' import * as m from '../paraglide/messages.js' @@ -38,14 +36,11 @@ const session = await getSession(Astro.request)