Fix local sharp setup for Nuxt image processing

This commit is contained in:
itsrubberduck
2026-02-15 15:47:06 +01:00
parent 4df6aef1ef
commit f7efaf1d7b
4 changed files with 7 additions and 1 deletions

1
.npmrc Normal file
View File

@@ -0,0 +1 @@
sharp_ignore_global_libvips=true

1
.nvmrc Normal file
View File

@@ -0,0 +1 @@
22

View File

@@ -78,5 +78,8 @@ export default defineNuxtConfig({
websocket: true,
},
},
image: {
provider: process.env.NUXT_IMAGE_PROVIDER || 'ipx',
},
})
})

View File

@@ -11,6 +11,7 @@
"preview": "nuxt preview",
"start": "node .output/server/index.mjs",
"postinstall": "nuxt prepare",
"sharp:rebuild": "SHARP_IGNORE_GLOBAL_LIBVIPS=1 yarn rebuild sharp",
"import:decision": "tsx --tsconfig tsconfig.scripts.json scripts/import-decision-tree.ts",
"test": "tsx --tsconfig tsconfig.tests.json --test server/utils/openai.test.ts"
},