Skip to content

Commit

Permalink
fix: Support for Cloudflare R2
Browse files Browse the repository at this point in the history
  • Loading branch information
matvp91 committed Oct 24, 2024
1 parent ab183f3 commit 6e0f6cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ dist-ssr
config.env

vite.config.ts.timestamp*
*.tsbuildinfo
*.tsbuildinfo

config.env*
!config.env.example
2 changes: 1 addition & 1 deletion packages/artisan/src/consumer/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export async function getInputPath(input: PartialInput, dir: Dir | string) {
const filePath = parseFilepath(input.path);

// If the input is on S3, download the file locally.
if (filePath.dir.startsWith("s3://")) {
if (filePath.path.startsWith("s3://")) {
const inDir = dir instanceof Dir ? await dir.createTempDir() : dir;
await downloadFile(inDir, filePath.path.replace("s3://", ""));
return parseFilepath(`${inDir}/${filePath.basename}`);
Expand Down

0 comments on commit 6e0f6cc

Please sign in to comment.