Skip to content

Commit

Permalink
chore(gatsby-plugin-image): Unflag remote images (#29032)
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic committed Jan 14, 2021
1 parent 332543c commit e72533d
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -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`)
}
Expand Down

0 comments on commit e72533d

Please sign in to comment.