Skip to content

Commit e0ab6a5

Browse files
committed
🧑‍💻 Check for build in path before pre-configuring Vite
1 parent 91d752c commit e0ab6a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Roots/Acorn/Assets/Middleware/ViteMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function handle($config)
1818
return $config;
1919
}
2020

21-
if (! empty($config['url']) && ! empty($config['path'])) {
21+
if (str_contains($config['path'], '/build/')) {
2222
return $config;
2323
}
2424

0 commit comments

Comments
 (0)