Skip to content

Commit 87e0bba

Browse files
committed
fix: remove old .env manipulation for bedrock
1 parent c8931d7 commit 87e0bba

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

src/Build/CopyWordPressFilesStep.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ private function getBaseFinder(): Finder
110110
*/
111111
private function getBedrockFilesToAppend(): array
112112
{
113-
// Need the .env file for WP-CLI to work during the build
114-
$files = [new SplFileInfo($this->projectDirectory.'/.env', $this->projectDirectory, '/.env')];
113+
$files = [];
115114

116115
/**
117116
* Finder can't seem to honor the .gitignore path ignoring child folders in the mu-plugins

src/Build/ModifyWordPressConfigurationStep.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ public function perform(string $environment, ProjectConfiguration $projectConfig
6767

6868
if ('wordpress' === $projectType) {
6969
$this->modifyWordPressConfig((array) $projectConfiguration->getEnvironment($environment));
70-
} elseif ('bedrock' === $projectType) {
71-
$this->filesystem->remove($this->buildDirectory.'/.env');
7270
}
7371
}
7472

0 commit comments

Comments
 (0)