From e72533df393b514e29f7e82ffad3bf6605e46811 Mon Sep 17 00:00:00 2001 From: Matt Kane Date: Thu, 14 Jan 2021 14:52:56 +0000 Subject: [PATCH] chore(gatsby-plugin-image): Unflag remote images (#29032) --- .../gatsby-plugin-image/src/node-apis/image-processing.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/gatsby-plugin-image/src/node-apis/image-processing.ts b/packages/gatsby-plugin-image/src/node-apis/image-processing.ts index 7b94909d39e63..fa81fdb8c5337 100644 --- a/packages/gatsby-plugin-image/src/node-apis/image-processing.ts +++ b/packages/gatsby-plugin-image/src/node-apis/image-processing.ts @@ -85,10 +85,11 @@ export async function writeImages({ async ([hash, { src, ...args }]) => { let file: FileSystemNode | undefined let fullPath - if (process.env.GATSBY_EXPERIMENTAL_REMOTE_IMAGES && isRemoteURL(src)) { + if (isRemoteURL(src)) { let createRemoteFileNode try { - ;({ createRemoteFileNode } = require(`gatsby-source-filesystem`)) + createRemoteFileNode = require(`gatsby-source-filesystem`) + .createRemoteFileNode } catch (e) { reporter.panic(`Please install gatsby-source-filesystem`) }