Does anyone have suggestions on using Sage 9 with Valet Share.
I’ve set my site url dynamically via wp-config, but assets still try to load from the development url.
Much thanks for any help.
Does anyone have suggestions on using Sage 9 with Valet Share.
I’ve set my site url dynamically via wp-config, but assets still try to load from the development url.
Much thanks for any help.
Could the Sage 9. update branch fix the issue?
e class='quote' data-post="1" data-topic="20067">Note: Changed Sage 9.2 to 9.1 (as 9.0.10 is the current release in master). Updated Sage 9.x You can now try out the Sage PR branch for webpack 5 and updated dependencies. The sage-installer which is used by Sage 9.x for adding framework support was also updated to add the right configuration and styles. Bootstrap 5 (Beta2) has been added for selection. Tailwind 2 is used now. Trying it out now! To prevent siloing of existing working forks of Sage 9 + (insert framework), please try this set…
I’m not sure. At the moment I’ve got things working in a rather hacky way by simply doing a string replace before the Blade output.
My rather hacky fix is to update the template function in helpers.php
function template( $file, $data = [] ) {
return str_replace('example.test', $_SERVER['HTTP_HOST'], sage( 'blade' )->render( $file, $data ));
}
This topic was automatically closed after 42 days. New replies are no longer allowed.