Skip to content

Commit

Permalink
fix: update config publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
christophstockinger committed Aug 21, 2023
1 parent 5f4633b commit 2ac4d1e
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,23 +178,9 @@ protected function registerAddonConfig(): self
$this->mergeConfigFrom(__DIR__ . '/../config/vercel.php', 'statamic.vercel');

$this->publishes([
__DIR__ . '/../config/redirect.php' => config_path('statamic/vercel.php'),
__DIR__ . '/../config/vercel.php' => config_path('statamic/vercel.php'),
], 'statamic-vercel-config');

return $this;
}

protected function bootAddonConfig()
{
if ($this->app->runningInConsole()) {

$this->mergeConfigFrom(__DIR__ . '/../config/vercel.php', 'vercel');

$this->publishes([
__DIR__ . '/../config/vercel.php' => config_path('statamic/vercel.php'),
], 'vercel-config');
}

return $this;
}
}

0 comments on commit 2ac4d1e

Please sign in to comment.