File tree Expand file tree Collapse file tree
packages/cli/src/lib/defaults/deploy-modules Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ class HTTPDeployer implements DeployModule {
4343 }
4444
4545 let response ;
46- if ( uri . authority === "fs" ) {
46+ if ( uri . authority === "fs" || uri . authority === "file" ) {
4747 // URI is a FileSystem URI, so we read the directory and publish it
4848 const formData = dirToFormData ( uri . path ) ;
4949
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ import { Uri } from "@polywrap/core-js";
66const IPFSClient = require ( "ipfs-http-client" ) ;
77const { globSource } = IPFSClient ;
88
9- const isValidUri = ( uri : Uri ) => uri . authority === "fs" ;
9+ const isValidUri = ( uri : Uri ) =>
10+ uri . authority === "fs" || uri . authority === "file" ;
1011
1112class IPFSDeployer implements DeployModule {
1213 async execute ( uri : Uri , config ?: { gatewayUri : string } ) : Promise < Uri > {
You can’t perform that action at this time.
0 commit comments