Skip to content

Commit 6d03a0b

Browse files
authored
inject the Vite asset url (#187)
1 parent b59fefa commit 6d03a0b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/BuildProcess/SetBuildEnvironment.php

+5
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,10 @@ public function __invoke()
7777
$envPath,
7878
'MIX_VAPOR_ASSET_URL='.$this->assetUrl.PHP_EOL
7979
);
80+
81+
$this->files->append(
82+
$envPath,
83+
'VITE_VAPOR_ASSET_URL='.$this->assetUrl.PHP_EOL
84+
);
8085
}
8186
}

0 commit comments

Comments
 (0)