Skip to content

Commit 5ffd36d

Browse files
committed
check environment type
1 parent be0c3bf commit 5ffd36d

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)