Skip to content

Commit

Permalink
fix: mount source path + integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed Jan 30, 2025
1 parent 6548241 commit 6441192
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Step/StaticFiles/Copy.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function process(): void
// copying mounts
if ($this->config->get('static.mounts')) {
foreach ($this->config->get('static.mounts') as $source => $destination) {
$this->copy($source, $destination);
$this->copy(Util::joinFile($this->config->getStaticPath(), (string) $source), (string) $destination);
}
}

Expand Down
3 changes: 3 additions & 0 deletions tests/fixtures/website/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@
'path',
],
'load' => true,
'mounts' => [
'video' => 'mount_test',
],
],
'assets' => [
'compile' => [
Expand Down

0 comments on commit 6441192

Please sign in to comment.