diff --git a/src/grow.ts b/src/grow.ts index 8f29b85..5645cd7 100644 --- a/src/grow.ts +++ b/src/grow.ts @@ -441,6 +441,12 @@ const growFetch = async (seed : Seed, env : Environment) : Promis return mockedResult(JSON.stringify(data, null, '\t')); } + //If it's a local fetch then use the localFetch machinery. + //TODO: this logic will be wrong in cases where it's hosted on a domain + if (isLocalLocation(resource)) { + return seed.garden.profile.localFetch(resource); + } + const result = await fetch(resource, { method, body