We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01c6259 commit d9d7685Copy full SHA for d9d7685
1 file changed
src/Commands/Init.php
@@ -134,9 +134,12 @@ private function updateEnvFile()
134
# Define framework.
135
if ($this->framework !== 'none')
136
{
137
+ # Get .env content.
138
$envContent = file_get_contents($envFile);
139
+
140
# Set framework.
141
$updates = str_replace("VITE_FRAMEWORK='none'", "VITE_FRAMEWORK='$this->framework'", $envContent);
142
143
# React entry file (main.jsx).
144
if ($this->framework !== 'react')
145
0 commit comments