diff --git a/README.md b/README.md index b124496..ba0322d 100644 --- a/README.md +++ b/README.md @@ -78,8 +78,8 @@ We offer you a [GitHub Action for Bunny CLI](https://github.com/marketplace/acti BUNNY_API_ACCESS_KEY: ${{ secrets.BUNNY_API_ACCESS_KEY }} BUNNY_STORAGE_USERNAME: bunny-cli BUNNY_STORAGE_PASSWORD: ${{ secrets.BUNNY_STORAGE_PASSWORD }} + BUNNY_STORAGE_PATH: some_target_edge_dir (optional) BUNNY_PULL_ZONE_ID: 466588 - BUNNY_EDGE_PATH: some_target_edge_dir with: args: deploy --dir=dist ``` diff --git a/app/Commands/DeployCommand.php b/app/Commands/DeployCommand.php index a650a19..36697ae 100644 --- a/app/Commands/DeployCommand.php +++ b/app/Commands/DeployCommand.php @@ -54,9 +54,9 @@ public function handle(): int $edgePath = sprintf('/%s', config('bunny.storage.username')); - if (!empty(config('bunny.storage.edge_path'))) { - $edgePath .= '/' . config('bunny.storage.edge_path'); - $this->info(sprintf('- Edge path is set to %s', $edgePath)); + if (!empty(config('bunny.storage.path'))) { + $edgePath .= '/' . config('bunny.storage.path'); + $this->info(sprintf('- Storage path is set to %s', $edgePath)); } if ($this->option('dry-run')) { diff --git a/config/bunny.php b/config/bunny.php index f1c32b4..6b3e010 100644 --- a/config/bunny.php +++ b/config/bunny.php @@ -5,7 +5,7 @@ 'hostname' => env('BUNNY_STORAGE_HOSTNAME', 'storage.bunnycdn.com'), 'username' => env('BUNNY_STORAGE_USERNAME'), 'password' => env('BUNNY_STORAGE_PASSWORD'), - 'edge_path' => env('BUNNY_EDGE_PATH'), + 'path' => env('BUNNY_STORAGE_PATH'), ], 'pull_zone' => [ 'id' => env('BUNNY_PULL_ZONE_ID'),