Skip to content

Commit

Permalink
Switch to sqoosh to see if it fixes netlify builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisChinchilla committed Dec 29, 2023
1 parent 7393814 commit 1aca141
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion 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 } from 'astro/config';
import { defineConfig,squooshImageService } from 'astro/config';
import tailwind from '@astrojs/tailwind';
import icon from 'astro-icon';
import sitemap from '@astrojs/sitemap';
Expand All @@ -14,6 +14,10 @@ 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

0 comments on commit 1aca141

Please sign in to comment.