From 89b886581c12ce6dcff2741a7f48d59bd90066b9 Mon Sep 17 00:00:00 2001 From: Ludovic DEHON Date: Thu, 19 Sep 2024 11:01:53 +0200 Subject: [PATCH] fix(site): use cloudflare image on production --- nuxt.config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nuxt.config.ts b/nuxt.config.ts index 61f7fc16aa..f92f71213e 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,8 +1,10 @@ const DEFAULT_KESTRA_API_URL = 'https://api.kestra.io/v1'; + export default defineNuxtConfig({ modules: ['@nuxt/devtools', '@nuxt/content', '@nuxt/image', '@nuxtjs/sitemap', 'nuxt-gtag', 'nuxt-multi-cache', 'vue3-carousel-nuxt', 'nuxt-lazy-hydrate', '@nuxtjs/robots'], target: 'server', image: { + provider: process.env.NODE_ENV === "production" ? "cloudflare" : "ipx", formats: { webp: { quality: 80