File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 55namespace Dakujem \Peat ;
66
77/**
8+ * Vite entry locator for development environments.
9+ *
810 * This locator will check for the presence of a development server "tell" file once - upon the first entry lookup.
911 * If it is present, it will attempt to read its contents for the server's URL.
1012 * A fallback URL may be provided for cases when the tell file does not contain a valid dev server URL.
1416 *
1517 * @author Andrej Rypak <xrypak@gmail.com>
1618 */
17- final class DetectTellFileOnce implements ViteLocatorContract
19+ final class TellFileDevelopmentLocator implements ViteLocatorContract
1820{
1921 private string $ tellFileName ;
2022 private ?string $ fallbackServerUrl ;
@@ -67,4 +69,4 @@ private function createLocatorIfServerDetected(): ?ViteLocatorContract
6769 // If the dev server's URL is known, all asset entries will be directed to it.
6870 return new ViteServerLocator ($ devServerUrl );
6971 }
70- }
72+ }
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public static function makeEntryLocator(
5858
5959 // The detection should not run in production.
6060 if ($ detectDevelopmentServer ) {
61- $ locators [] = new DetectTellFileOnce (
61+ $ locators [] = new TellFileDevelopmentLocator (
6262 $ devServerTellFileName ,
6363 $ devServerUrl ,
6464 );
You can’t perform that action at this time.
0 commit comments