We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ccc3b1 commit 9c135b2Copy full SHA for 9c135b2
packages/runtime/src/helpers/functions.ts
@@ -75,7 +75,7 @@ export const setupImageFunction = async ({
75
if (destr(process.env.DISABLE_IPX)) {
76
// If no image loader is specified, need to redirect to a 404 page since there's no
77
// backing loader to serve local site images once deployed to Netlify
78
- if (!IS_LOCAL && imageconfig.loader && imageconfig.loader === 'default') {
+ if (!IS_LOCAL && imageconfig.loader === 'default') {
79
netlifyConfig.redirects.push({
80
from: `${imagePath}*`,
81
query: { url: ':url', w: ':width', q: ':quality' },
0 commit comments