Use Cli DataSource resolution for Api requests. This resolves an issue with MissingHttpResponse when resolving distilled DataSources in the dev server.

This commit is contained in:
Dillon Kearns 2021-06-24 08:22:57 -07:00
parent 22a3d88f63
commit 0dd2f8ecb6

View File

@ -811,7 +811,7 @@ nextStepToEffect contentCache config model ( updatedStaticResponsesModel, nextSt
thing =
apiHandler.matchesToResponse path
in
StaticHttpRequest.resolve ApplicationType.Browser
StaticHttpRequest.resolve ApplicationType.Cli
thing
model.allRawResponses
|> Result.mapError (StaticHttpRequest.toBuildError "TODO - path from request")