Skip to content

Commit

Permalink
Switch image service
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Chinchilla <[email protected]>
  • Loading branch information
ChrisChinchilla committed Oct 6, 2024
1 parent 7cd9a50 commit c6937f0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
6 changes: 1 addition & 5 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from 'path';
import { fileURLToPath } from 'url';
import { defineConfig,squooshImageService } from 'astro/config';
import { defineConfig } from 'astro/config';
import tailwind from '@astrojs/tailwind';
import icon from 'astro-icon';
import sitemap from '@astrojs/sitemap';
Expand All @@ -14,10 +14,6 @@ const whenExternalScripts = (items = []) => SITE.googleAnalyticsId ? Array.isArr

// https://astro.build/config
export default defineConfig({
// TODO: Fix this issue with netlify
image: {
service: squooshImageService(),
},
site: SITE.origin,
base: SITE.basePathname,
trailingSlash: SITE.trailingSlash ? 'always' : 'never',
Expand Down
1 change: 0 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[functions]
node_bundler = "esbuild"
external_node_modules = ["sharp"]

[[redirects]]
from = "/support"
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@
"@netlify/functions": "^2.8.2",
"fast-xml-parser": "^4.5.0",
"markdown-truncate": "^1.1.1",
"node-fetch": "^3.3.2"
"node-fetch": "^3.3.2",
"sharp": "^0.33.5"
},
"devDependencies": {
"@astro-community/astro-embed-youtube": "^0.5.3",
"@astrojs/markdown-component": "1.0.5",
"@astrojs/mdx": "^3.1.7",
"@astrojs/partytown": "^2.1.2",
"@astrojs/rss": "^4.0.7",
"@astrojs/markdown-component": "1.0.5",
"@astrojs/sitemap": "^3.2.0",
"@astrojs/tailwind": "^5.1.1",
"@astrolib/analytics": "^0.6.1",
Expand All @@ -40,10 +41,10 @@
"@iconify-json/carbon": "^1.2.1",
"@iconify-json/fa": "^1.2.0",
"@iconify-json/fluent": "^1.2.2",
"@iconify-json/simple-line-icons": "^1.2.0",
"@iconify-json/ph": "^1.2.0",
"@iconify-json/ri": "^1.2.0",
"@iconify-json/simple-icons": "^1.2.5",
"@iconify-json/simple-line-icons": "^1.2.0",
"@iconify-json/tabler": "^1.2.4",
"@tailwindcss/typography": "^0.5.15",
"@typescript-eslint/eslint-plugin": "^8.8.0",
Expand Down

0 comments on commit c6937f0

Please sign in to comment.