From f2ee66fc160664b33837a469da954b60132e2cb9 Mon Sep 17 00:00:00 2001 From: Matt Kane Date: Thu, 14 Jan 2021 14:17:31 +0000 Subject: [PATCH] Unflag remote images --- .../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`) }