Skip to content

Commit 9c135b2

Browse files
committed
refactor: remove unnnecessary logic
1 parent 8ccc3b1 commit 9c135b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime/src/helpers/functions.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export const setupImageFunction = async ({
7575
if (destr(process.env.DISABLE_IPX)) {
7676
// If no image loader is specified, need to redirect to a 404 page since there's no
7777
// backing loader to serve local site images once deployed to Netlify
78-
if (!IS_LOCAL && imageconfig.loader && imageconfig.loader === 'default') {
78+
if (!IS_LOCAL && imageconfig.loader === 'default') {
7979
netlifyConfig.redirects.push({
8080
from: `${imagePath}*`,
8181
query: { url: ':url', w: ':width', q: ':quality' },

0 commit comments

Comments
 (0)