503 nuxt/image with static images
Is there any fix or workaround for images randomly throwing 503 error? Heard its related to IPX
public directory. If your images are located elsewhere, you need to specify the directory in your nuxt.config.ts:@nuxt/imagesharp from source. Check the node-gyp installation requirements (https://github.com/nodejs/node-gyp#installation). export default defineNuxtConfig({
ssr: false,
nitro: {
prerender: {
routes: [
'/_ipx/w_120/market.jpg',
'/_ipx/w_140/market.jpg',
// Add other image routes as needed
]
}
}
}) export default defineNuxtConfig({
image: {
dir: 'assets/images' // or wherever your images are located
}
})