Skip to content

Commit 9d47bdb

Browse files
authored
Merge pull request #4 from tailpress/check-environment-type-for-vite-dev
Check environment type for Vite dev server check
2 parents be0c3bf + 5ffd36d commit 9d47bdb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Assets/ViteCompiler.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ public function ssl(bool $verify = true): self
2828

2929
public function isDevServerRunning(): bool
3030
{
31+
if(! in_array(wp_get_environment_type(), ['local', 'development'])) {
32+
return false;
33+
}
34+
3135
$args = [];
3236

3337
if($this->ssl) {

0 commit comments

Comments
 (0)