@@ -92,6 +92,9 @@ module.exports = async (app, lando) => {
9292 // load in and parse v4 services
9393 app . events . on ( 'pre-init' , async ( ) => await require ( './hooks/app-add-v4-services' ) ( app , lando ) ) ;
9494
95+ // initialize proxy stuff
96+ app . events . on ( 'pre-init' , async ( ) => await require ( './hooks/app-init-proxy' ) ( app , lando ) ) ;
97+
9598 // add in hostname
9699 app . events . on ( 'post-init' , 1 , async ( ) => await require ( './hooks/app-add-hostnames' ) ( app , lando ) ) ;
97100
@@ -116,6 +119,9 @@ module.exports = async (app, lando) => {
116119 // Add tooling if applicable
117120 app . events . on ( 'post-init' , async ( ) => await require ( './hooks/app-add-tooling' ) ( app , lando ) ) ;
118121
122+ // add proxy info as needed
123+ app . events . on ( 'post-init' , async ( ) => await require ( './hooks/app-add-proxy-info' ) ( app , lando ) ) ;
124+
119125 // Collect info so we can inject LANDO_INFO
120126 // @NOTE : this is not currently the full lando info because a lot of it requires the app to be on
121127 app . events . on ( 'post-init' , 10 , async ( ) => await require ( './hooks/app-set-lando-info' ) ( app , lando ) ) ;
@@ -160,6 +166,9 @@ module.exports = async (app, lando) => {
160166 // i really wish thre was a better way to do this but alas i do not think there is
161167 app . events . on ( 'pre-rebuild' , 10 , async ( ) => await require ( './hooks/app-shuffle-locals' ) ( app , lando ) ) ;
162168
169+ // start up proxy
170+ app . events . on ( 'pre-start' , 1 , async ( ) => await require ( './hooks/app-start-proxy' ) ( app , lando ) ) ;
171+
163172 // Check for updates if the update cache is empty
164173 app . events . on ( 'pre-start' , 1 , async ( ) => await require ( './hooks/app-check-for-updates' ) ( app , lando ) ) ;
165174
@@ -184,6 +193,9 @@ module.exports = async (app, lando) => {
184193 // Add path info/shellenv tip if needed
185194 app . events . on ( 'post-start' , async ( ) => await require ( './hooks/app-add-updates-info' ) ( app , lando ) ) ;
186195
196+ // add proxy info as needed
197+ app . events . on ( 'post-start' , async ( ) => await require ( './hooks/app-add-proxy-info' ) ( app , lando ) ) ;
198+
187199 // Add update tip if needed
188200 app . events . on ( 'post-start' , async ( ) => await require ( './hooks/app-add-path-info' ) ( app , lando ) ) ;
189201
@@ -199,6 +211,9 @@ module.exports = async (app, lando) => {
199211 // throw service not start errors
200212 app . events . on ( 'post-start' , 1 , async ( ) => await require ( './hooks/app-check-v4-service-running' ) ( app , lando ) ) ;
201213
214+ // add app url scanning
215+ app . events . on ( 'post-start' , 10 , async ( ) => await require ( './hooks/app-add-url-scans' ) ( app , lando ) ) ;
216+
202217 // Reset app info on a stop, this helps prevent wrong/duplicate information being reported on a restart
203218 app . events . on ( 'post-stop' , async ( ) => require ( './utils/get-app-info-defaults' ) ( app ) ) ;
204219
@@ -238,6 +253,9 @@ module.exports = async (app, lando) => {
238253 app . events . on ( 'post-start' , 10 , async ( ) => await require ( './hooks/app-run-legacy-scanner' ) ( app , lando ) ) ;
239254 }
240255
256+ // legacy sharing stuff
257+ await require ( './hooks/app-load-legacy-sharing' ) ( app , lando ) ;
258+
241259 // REturn defualts
242260 return {
243261 env : {
0 commit comments